Skip to content

Commit

Permalink
feat: add images theme property and add css properties
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrzhou committed Jun 25, 2022
1 parent a360e7c commit ae27b86
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
19 changes: 19 additions & 0 deletions index.js
Expand Up @@ -39,11 +39,18 @@ const spec = {
'borderRightWidth',
'borderTopWidth',
'borderWidth',
'columnRuleWidth',
],
colors: [
'backgroundColor',
'borderBlockColor',
'borderBlockEndColor',
'borderBlockStartColor',
'borderBottomColor',
'borderColor',
'borderInlineColor',
'borderInlineEndColor',
'borderInlineStartColor',
'borderLeftColor',
'borderRightColor',
'borderTopColor',
Expand All @@ -53,25 +60,32 @@ const spec = {
'fill',
'outlineColor',
'stroke',
'textDecorationColor',
],
filters: ['filter'],
fontFamilies: ['fontFamily'],
fontSizes: ['fontSize'],
fontWeights: ['fontWeight'],
images: ['backgroundImage', 'borderImage'],
keyframes: ['animationName'],
letterSpacings: ['letterSpacing'],
lineHeights: ['lineHeight'],
opacities: ['opacity'],
radii: [
'borderEndEndRadius',
'borderEndStartRadius',
'borderBottomLeftRadius',
'borderBottomRightRadius',
'borderRadius',
'borderStartEndRadius',
'borderStartStartRadius',
'borderTopLeftRadius',
'borderTopRightRadius',
],
shadows: ['boxShadow', 'textShadow'],
sizes: [
'blockSize',
'columnWidth',
'flexBasis',
'height',
'inlineSize',
Expand Down Expand Up @@ -124,6 +138,11 @@ const spec = {
'paddingTop',
'right',
'rowGap',
'scrollMargin',
'scrollMarginBottom',
'scrollMarginLeft',
'scrollMarginRight',
'scrollMarginTop',
'scrollPadding',
'scrollPaddingBottom',
'scrollPaddingLeft',
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "uinix-theme-spec",
"version": "1.0.0",
"version": "1.1.0",
"description": "The default uinix theme spec.",
"license": "MIT",
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions readme.md
Expand Up @@ -71,6 +71,7 @@ const theme = {
fontFamilies: {},
fontSizes: {},
fontWeights: {},
images: {},
keyframes: {},
letterSpacings: {},
lineHeights: {},
Expand Down
19 changes: 19 additions & 0 deletions test/index.js
Expand Up @@ -46,11 +46,18 @@ test('spec', (t) => {
'borderRightWidth',
'borderTopWidth',
'borderWidth',
'columnRuleWidth',
],
colors: [
'backgroundColor',
'borderBlockColor',
'borderBlockEndColor',
'borderBlockStartColor',
'borderBottomColor',
'borderColor',
'borderInlineColor',
'borderInlineEndColor',
'borderInlineStartColor',
'borderLeftColor',
'borderRightColor',
'borderTopColor',
Expand All @@ -60,25 +67,32 @@ test('spec', (t) => {
'fill',
'outlineColor',
'stroke',
'textDecorationColor',
],
filters: ['filter'],
fontFamilies: ['fontFamily'],
fontSizes: ['fontSize'],
fontWeights: ['fontWeight'],
images: ['backgroundImage', 'borderImage'],
keyframes: ['animationName'],
letterSpacings: ['letterSpacing'],
lineHeights: ['lineHeight'],
opacities: ['opacity'],
radii: [
'borderEndEndRadius',
'borderEndStartRadius',
'borderBottomLeftRadius',
'borderBottomRightRadius',
'borderRadius',
'borderStartEndRadius',
'borderStartStartRadius',
'borderTopLeftRadius',
'borderTopRightRadius',
],
shadows: ['boxShadow', 'textShadow'],
sizes: [
'blockSize',
'columnWidth',
'flexBasis',
'height',
'inlineSize',
Expand Down Expand Up @@ -131,6 +145,11 @@ test('spec', (t) => {
'paddingTop',
'right',
'rowGap',
'scrollMargin',
'scrollMarginBottom',
'scrollMarginLeft',
'scrollMarginRight',
'scrollMarginTop',
'scrollPadding',
'scrollPaddingBottom',
'scrollPaddingLeft',
Expand Down

0 comments on commit ae27b86

Please sign in to comment.