Skip to content

Commit

Permalink
release: 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrzhou committed Jun 25, 2022
0 parents commit 235b69a
Show file tree
Hide file tree
Showing 10 changed files with 632 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [uinix-js]
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: main
on:
- pull_request
- push
jobs:
main:
name: '${{matrix.node}} on ${{matrix.os}}'
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: dcodeIO/setup-node-nvm@master
with:
node-version: ${{matrix.node}}
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v1
strategy:
matrix:
os:
- ubuntu-latest
node:
- 18.x
- node
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
*.d.ts
*.log
coverage/
node_modules/
package-lock.json
153 changes: 153 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
const spec = {
borders: [
'border',
'borderBlock',
'borderBlockEnd',
'borderBlockStart',
'borderBottom',
'borderInline',
'borderInlineEnd',
'borderInlineStart',
'borderLeft',
'borderRight',
'borderTop',
],
borderStyles: [
'borderBlockEndStyle',
'borderBlockStartStyle',
'borderBlockStyle',
'borderBottomStyle',
'borderInlineEndStyle',
'borderInlineStartStyle',
'borderInlineStyle',
'borderLeftStyle',
'borderRightStyle',
'borderStyle',
'borderTopStyle',
],
borderWidths: [
'borderBlockEndWidth',
'borderBlockStartWidth',
'borderBlockWidth',
'borderBottomWidth',
'borderInlineEndWidth',
'borderInlineStartWidth',
'borderInlineWidth',
'borderLeftWidth',
'borderRightWidth',
'borderTopWidth',
'borderWidth',
'column-rule-width',
],
colors: [
'background',
'backgroundColor',
'borderBlockColor',
'borderBlockEndColor',
'borderBlockStartColor',
'borderBottomColor',
'borderColor',
'borderInlineColor',
'borderInlineEndColor',
'borderInlineStartColor',
'borderLeftColor',
'borderRightColor',
'borderTopColor',
'caretColor',
'color',
'columnRuleColor',
'fill',
'outlineColor',
'stroke',
'textDecorationColor',
],
fonts: ['fontFamily'],
fontSizes: ['fontSize'],
fontWeights: ['fontWeight'],
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',
'maxBlockSize',
'maxHeight',
'maxInlineSize',
'maxWidth',
'minBlockSize',
'minHeight',
'minInlineSize',
'minWidth',
'width',
],
space: [
'bottom',
'columnGap',
'gap',
'gridColumnGap',
'gridGap',
'gridRowGap',
'inset',
'insetBlock',
'insetBlockEnd',
'insetBlockStart',
'insetInline',
'insetInlineEnd',
'insetInlineStart',
'left',
'margin',
'marginBlock',
'marginBlockEnd',
'marginBlockStart',
'marginBottom',
'marginInline',
'marginInlineEnd',
'marginInlineStart',
'marginLeft',
'marginRight',
'marginTop',
'padding',
'paddingBlock',
'paddingBlockEnd',
'paddingBlockStart',
'paddingBottom',
'paddingInline',
'paddingInlineEnd',
'paddingInlineStart',
'paddingLeft',
'paddingRight',
'paddingTop',
'right',
'rowGap',
'scrollMargin',
'scrollMarginBottom',
'scrollMarginLeft',
'scrollMarginRight',
'scrollMarginTop',
'scrollPadding',
'scrollPaddingBottom',
'scrollPaddingLeft',
'scrollPaddingRight',
'scrollPaddingTop',
'top',
],
transitions: ['transition'],
zIndices: ['zIndex'],
};

export default spec;
21 changes: 21 additions & 0 deletions license
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
(The MIT License)

Copyright (c) 2022 Chris Zhou <chrisrzhou@pm.me>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
73 changes: 73 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"name": "uinix-theme-spec-theme-ui",
"version": "1.0.0",
"description": "The theme-ui theme spec usable by uinix-theme.",
"license": "MIT",
"keywords": [
"uinix",
"theme",
"spec",
"theme-ui"
],
"repository": "uinix-js/uinix-theme-spec-theme-ui",
"bugs": "https://github.com/uinix-js/uinix-theme-spec-theme-ui/issues",
"author": "Chris Zhou <chrisrzhou@pm.me> (https://chrisrzhou.io)",
"funding": [
{
"type": "GitHub Sponsors",
"url": "https://github.com/sponsors/uinix-js"
}
],
"sideEffects": false,
"type": "module",
"main": "index.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.d.ts"
],
"exports": "./index.js",
"devDependencies": {
"c8": "^7.11.3",
"rimraf": "^3.0.2",
"type-coverage": "^2.21.1",
"typescript": "^4.7.4",
"xo": "^0.50.0"
},
"scripts": {
"build": "npm run clean && tsc && type-coverage",
"clean": "rimraf *.d.ts",
"lint": "xo --fix",
"test-coverage": "c8 --check-coverage --all --100 --reporter lcov node --test test/index.js",
"test": "npm run build && npm run lint && npm run test-coverage"
},
"prettier": {
"bracketSpacing": false,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
},
"typeCoverage": {
"atLeast": 100,
"detail": true,
"ignoreFiles": "test/*.js",
"strict": true,
"suppressError": true
},
"xo": {
"esnext": false,
"prettier": true,
"overrides": [
{
"files": [
"test/**/*.js"
],
"rules": {
"import/no-unassigned-import": "off"
}
}
]
}
}
Loading

0 comments on commit 235b69a

Please sign in to comment.