Skip to content

Commit

Permalink
Tweak prettier setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy-set-studio committed Aug 18, 2020
1 parent 00e55fa commit c500fe6
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 27 deletions.
5 changes: 4 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"printWidth": 90,
"tabWidth": 2,
"singleQuote": true,
"bracketSpacing": false
"bracketSpacing": false,
"quoteProps": "consistent",
"trailingComma": "none",
"arrowParens": "avoid"
}
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"scripts": {
"test": "npx sass gorko.scss tmp/gorko.css"
},
"devDependencies": {},
"devDependencies": {
"prettier": "^2.0.5"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hankchizljaw/gorko.git"
Expand Down
50 changes: 25 additions & 25 deletions src/_default-config.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $gorko-size-scale: (
'500': $gorko-base-size * 1.25,
'600': $gorko-base-size * 1.6,
'700': $gorko-base-size * 2,
'900': $gorko-base-size * 3
'900': $gorko-base-size * 3,
) !default;

/**
Expand All @@ -29,7 +29,7 @@ $gorko-size-scale: (
*/
$gorko-colors: (
'dark': #1a1a1a,
'light': #f3f3f3
'light': #f3f3f3,
) !default;

/**
Expand All @@ -41,108 +41,108 @@ $gorko-config: (
'bg': (
'items': $gorko-colors,
'output': 'standard',
'property': 'background'
'property': 'background',
),
'color': (
'items': $gorko-colors,
'output': 'standard',
'property': 'color'
'property': 'color',
),
'box': (
'items': (
'block': 'block',
'flex': 'flex',
'hide': 'none',
'show': 'inherit'
'show': 'inherit',
),
'output': 'responsive',
'property': 'display'
'property': 'display',
),
'font': (
'items': (
'base': 'Helvetica, Arial, sans-serif'
'base': 'Helvetica, Arial, sans-serif',
),
'output': 'standard',
'property': 'font-family'
'property': 'font-family',
),
'gap-top': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'margin-top'
'property': 'margin-top',
),
'gap-right': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'margin-right'
'property': 'margin-right',
),
'gap-bottom': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'margin-bottom'
'property': 'margin-bottom',
),
'gap-left': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'margin-left'
'property': 'margin-left',
),
'pad-top': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'padding-top'
'property': 'padding-top',
),
'pad-right': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'padding-right'
'property': 'padding-right',
),
'pad-bottom': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'padding-bottom'
'property': 'padding-bottom',
),
'pad-left': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'padding-left'
'property': 'padding-left',
),
'stack': (
'items': (
'300': 0,
'400': 10,
'500': 20,
'600': 30,
'700': 40
'700': 40,
),
'output': 'standard',
'property': 'z-index'
'property': 'z-index',
),
'text': (
'items': $gorko-size-scale,
'output': 'responsive',
'property': 'font-size'
'property': 'font-size',
),
'weight': (
'items': (
'light': '300',
'regular': '400',
'bold': '700'
'bold': '700',
),
'output': 'standard',
'property': 'font-weight'
'property': 'font-weight',
),
'width': (
'items': (
'full': '100%',
'half': percentage(1/2),
'quarter': percentage(1/4),
'third': percentage(1/3)
'third': percentage(1/3),
),
'output': 'responsive',
'property': 'width'
'property': 'width',
),
'breakpoints': (
'sm': '(min-width: 36em)',
'md': '(min-width: 48em)',
'lg': '(min-width: 62em)'
)
'lg': '(min-width: 62em)',
),
) !default;

0 comments on commit c500fe6

Please sign in to comment.