Skip to content

Commit

Permalink
Add default for color scale; updat fixture styleguide
Browse files Browse the repository at this point in the history
  • Loading branch information
colepeters committed Jul 10, 2024
1 parent ca8982c commit bf6c640
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion v7/properties/color-scales.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ function getColorScale(hslBaseColor, name) {
export default function colorScales(state = {}) {
const { config = {} } = state
const { color = {} } = config
const { scales = { /* DEFAULTS HERE */ } } = color
const { scales = {
gray: '#808080',
} } = color

let output = ''

Expand Down
7 changes: 4 additions & 3 deletions v7/test/fixtures/styleguide.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
classes: true,
classes: false,
reset: true,
borders: {
radii: [2, '9999em'],
Expand All @@ -10,10 +10,11 @@ export default {
},
color: {
scales: {
red: '#f00',
gray: '#808080',
},
spots: {
rebeccaPurple: '#663399',
magenta: '#ff0095',
p3magenta: 'color(display-p3 1 0 0.58)',
},
},
customProperties: {
Expand Down

0 comments on commit bf6c640

Please sign in to comment.