@symbo.ls/starter-kit 3.2.3 → 3.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +4 -0
- package/.eslintrc +12 -2
- package/.vscode/settings.json +10 -0
- package/README.md +3 -3
- package/package.json +5 -21
- package/symbols/app.js +1 -0
- package/symbols/components/index.js +0 -0
- package/symbols/config.js +11 -0
- package/symbols/dependencies.js +2 -0
- package/symbols/designSystem/ANIMATION.js +1 -0
- package/symbols/designSystem/CASES.js +1 -0
- package/symbols/designSystem/CLASS.js +1 -0
- package/symbols/designSystem/COLOR.js +4 -0
- package/symbols/designSystem/FONT.js +1 -0
- package/symbols/designSystem/FONT_FAMILY.js +1 -0
- package/symbols/designSystem/GRADIENT.js +1 -0
- package/symbols/designSystem/GRID.js +1 -0
- package/symbols/designSystem/ICONS.js +1 -0
- package/symbols/designSystem/MEDIA.js +1 -0
- package/symbols/designSystem/RESET.js +1 -0
- package/symbols/designSystem/SHAPE.js +1 -0
- package/symbols/designSystem/SPACING.js +5 -0
- package/symbols/designSystem/THEME.js +20 -0
- package/symbols/designSystem/TIMING.js +1 -0
- package/symbols/designSystem/TYPOGRAPHY.js +6 -0
- package/symbols/designSystem/index.js +35 -0
- package/symbols/envs.js +1 -0
- package/symbols/files/index.js +3 -0
- package/symbols/functions/index.js +0 -0
- package/symbols/index.html +15 -0
- package/symbols/index.js +31 -0
- package/symbols/methods/index.js +0 -0
- package/symbols/pages/index.js +2 -0
- package/symbols/sharedLibraries.js +1 -0
- package/symbols/snippets/index.js +0 -0
- package/symbols/state.js +1 -0
- package/symbols.json +7 -3
- package/.parcelrc +0 -8
- package/example/app.js +0 -15
- package/example/components.js +0 -54
- package/example/designSystem.js +0 -92
- package/example/index.js +0 -16
- package/example/pages.js +0 -32
- package/index.html +0 -12
- package/src/components.js +0 -57
- package/src/designSystem.js +0 -92
- package/src/index.js +0 -27
- package/src/pages.js +0 -30
package/.eslintignore
ADDED
package/.eslintrc
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "standard"
|
|
3
|
-
|
|
2
|
+
"extends": "standard",
|
|
3
|
+
"parser": "@babel/eslint-parser",
|
|
4
|
+
"parserOptions": {
|
|
5
|
+
"ecmaVersion": "latest",
|
|
6
|
+
"sourceType": "module",
|
|
7
|
+
"requireConfigFile": false
|
|
8
|
+
},
|
|
9
|
+
"rules": {
|
|
10
|
+
"no-unused-vars": "warn",
|
|
11
|
+
"import/no-duplicates": "warn"
|
|
12
|
+
}
|
|
13
|
+
}
|
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Symbols Starter Kit
|
|
2
|
-
Example dev setup (boilerplate) to use [DOMQL](https://github.com/domql/domql). You can also check
|
|
2
|
+
Example dev setup (boilerplate) to use [DOMQL](https://github.com/domql/domql). You can also check out [Symbols developers documentation](https://symbols.app/developers) for advanced use.
|
|
3
3
|
|
|
4
4
|
### Setup
|
|
5
5
|
|
|
@@ -10,10 +10,10 @@ git clone git@github.com:symbo-ls/starter-kit.git
|
|
|
10
10
|
|
|
11
11
|
2. Install scripts
|
|
12
12
|
```
|
|
13
|
-
|
|
13
|
+
npm install
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
3. Run the project
|
|
17
17
|
```
|
|
18
|
-
|
|
18
|
+
npm start
|
|
19
19
|
```
|
package/package.json
CHANGED
|
@@ -1,30 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/starter-kit",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.5",
|
|
4
4
|
"description": "Example dev setup to use Symbols",
|
|
5
5
|
"author": "symbo.ls",
|
|
6
6
|
"repository": "https://github.com/symbo-ls/starter-kit",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "npx
|
|
9
|
-
"
|
|
10
|
-
"build": "npx parcel build index.html"
|
|
8
|
+
"start": "npx smbls start",
|
|
9
|
+
"build": "npx smbls build"
|
|
11
10
|
},
|
|
12
11
|
"dependencies": {
|
|
13
|
-
"smbls": "^3.
|
|
14
|
-
}
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@babel/core": "^7.26.0",
|
|
17
|
-
"@babel/eslint-parser": "^7.26.10",
|
|
18
|
-
"@babel/preset-env": "^7.26.9",
|
|
19
|
-
"@parcel/babel-preset-env": "^2.11.0",
|
|
20
|
-
"@parcel/transformer-inline-string": "^2.13.3",
|
|
21
|
-
"@parcel/transformer-raw": "^2.13.3",
|
|
22
|
-
"buffer": "^5.5.0||^6.0.0",
|
|
23
|
-
"eslint": "^9.28.0",
|
|
24
|
-
"eslint-config-standard": "^17.1.0",
|
|
25
|
-
"eslint-plugin-import": "^2.31.0",
|
|
26
|
-
"parcel": "^2.13.3",
|
|
27
|
-
"standard": "^17.1.2"
|
|
28
|
-
},
|
|
29
|
-
"gitHead": "9fc1b79b41cdc725ca6b24aec64920a599634681"
|
|
12
|
+
"smbls": "^3.3.5"
|
|
13
|
+
}
|
|
30
14
|
}
|
package/symbols/app.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
document: {
|
|
3
|
+
'@light': {
|
|
4
|
+
color: 'black',
|
|
5
|
+
background: 'white'
|
|
6
|
+
},
|
|
7
|
+
'@dark': {
|
|
8
|
+
color: 'white',
|
|
9
|
+
background: 'black'
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
none: {
|
|
13
|
+
color: 'none',
|
|
14
|
+
background: 'none'
|
|
15
|
+
},
|
|
16
|
+
transparent: {
|
|
17
|
+
color: 'currentColor',
|
|
18
|
+
background: 'transparent'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import color from './color.js'
|
|
2
|
+
import gradient from './gradient.js'
|
|
3
|
+
import theme from './theme.js'
|
|
4
|
+
import font from './font.js'
|
|
5
|
+
import font_family from './font_family.js'
|
|
6
|
+
import typography from './typography.js'
|
|
7
|
+
import spacing from './spacing.js'
|
|
8
|
+
import timing from './timing.js'
|
|
9
|
+
import class_ from './class.js'
|
|
10
|
+
import grid from './grid.js'
|
|
11
|
+
import icons from './icons.js'
|
|
12
|
+
import shape from './shape.js'
|
|
13
|
+
import reset from './reset.js'
|
|
14
|
+
import animation from './animation.js'
|
|
15
|
+
import media from './media.js'
|
|
16
|
+
import cases from './cases.js'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
color,
|
|
20
|
+
gradient,
|
|
21
|
+
theme,
|
|
22
|
+
font,
|
|
23
|
+
font_family,
|
|
24
|
+
typography,
|
|
25
|
+
spacing,
|
|
26
|
+
timing,
|
|
27
|
+
class: class_,
|
|
28
|
+
grid,
|
|
29
|
+
icons,
|
|
30
|
+
shape,
|
|
31
|
+
reset,
|
|
32
|
+
animation,
|
|
33
|
+
media,
|
|
34
|
+
cases
|
|
35
|
+
}
|
package/symbols/envs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<html background="#000">
|
|
2
|
+
<head>
|
|
3
|
+
<title>Symbols App</title>
|
|
4
|
+
<meta
|
|
5
|
+
name="viewport"
|
|
6
|
+
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
|
|
7
|
+
/>
|
|
8
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
9
|
+
|
|
10
|
+
<meta charset="UTF-8" />
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<script type="module" src="./index.js"></script>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
package/symbols/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { create } from 'smbls'
|
|
2
|
+
|
|
3
|
+
import app from './app.js'
|
|
4
|
+
|
|
5
|
+
import state from './state.js'
|
|
6
|
+
import dependencies from './dependencies.js'
|
|
7
|
+
import * as components from './components/index.js'
|
|
8
|
+
import * as snippets from './snippets/index.js'
|
|
9
|
+
import pages from './pages/index.js'
|
|
10
|
+
import * as functions from './functions/index.js'
|
|
11
|
+
import * as methods from './methods/index.js'
|
|
12
|
+
import designSystem from './designSystem/index.js'
|
|
13
|
+
import files from './files/index.js'
|
|
14
|
+
import sharedLibraries from './sharedLibraries.js'
|
|
15
|
+
import config from './config.js'
|
|
16
|
+
import envs from './envs.js'
|
|
17
|
+
|
|
18
|
+
create(app, {
|
|
19
|
+
...config,
|
|
20
|
+
state,
|
|
21
|
+
dependencies,
|
|
22
|
+
components,
|
|
23
|
+
snippets,
|
|
24
|
+
pages,
|
|
25
|
+
functions,
|
|
26
|
+
methods,
|
|
27
|
+
designSystem,
|
|
28
|
+
files,
|
|
29
|
+
sharedLibraries,
|
|
30
|
+
envs
|
|
31
|
+
})
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default []
|
|
File without changes
|
package/symbols/state.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
package/symbols.json
CHANGED
package/.parcelrc
DELETED
package/example/app.js
DELETED
package/example/components.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
export const Header = {
|
|
4
|
-
display: 'flex',
|
|
5
|
-
minWidth: '100%',
|
|
6
|
-
padding: 'Z B',
|
|
7
|
-
align: 'center space-between',
|
|
8
|
-
Flex: {
|
|
9
|
-
gap: 'C',
|
|
10
|
-
childExtends: {
|
|
11
|
-
extends: 'Link',
|
|
12
|
-
textDecoration: ({ props }) =>
|
|
13
|
-
window.location.pathname === props.href ? 'underline' : 'none'
|
|
14
|
-
},
|
|
15
|
-
Text_logo: { href: '/', text: 'Hello!' },
|
|
16
|
-
Text_about: { href: '/about', text: 'About' }
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
ThemeSwitcher: {}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const ThemeSwitcher = {
|
|
23
|
-
display: 'flex',
|
|
24
|
-
gap: 'A2',
|
|
25
|
-
childExtends: {
|
|
26
|
-
isActive: (element, state) => state.globalTheme === element.key,
|
|
27
|
-
cursor: 'pointer',
|
|
28
|
-
'.isActive': {
|
|
29
|
-
fontWeight: '900'
|
|
30
|
-
},
|
|
31
|
-
onClick: (event, element, state) => {
|
|
32
|
-
state.update({ globalTheme: element.key })
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
Dark: { text: 'Dark' },
|
|
36
|
-
Light: { text: 'Light' },
|
|
37
|
-
Midnight: { text: 'Midnight' }
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const Footer = {
|
|
41
|
-
padding: 'Z B',
|
|
42
|
-
order: 9
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export const TestComponent = {
|
|
46
|
-
padding: 'Z B',
|
|
47
|
-
round: 'A',
|
|
48
|
-
margin: 'A -Z C',
|
|
49
|
-
background: 'orange .35',
|
|
50
|
-
text: 'test',
|
|
51
|
-
':hover': {
|
|
52
|
-
background: 'orange .35 +35'
|
|
53
|
-
}
|
|
54
|
-
}
|
package/example/designSystem.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { DEFAULT_ICONS } from '@symbo.ls/default-icons'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Colors
|
|
7
|
-
* @tutorial https://docs.symbols.app/color
|
|
8
|
-
*/
|
|
9
|
-
const COLOR = {
|
|
10
|
-
transparent: 'transparent',
|
|
11
|
-
black: 'black',
|
|
12
|
-
white: 'white',
|
|
13
|
-
orange: '#E98232'
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Gradients
|
|
18
|
-
* @tutorial https://docs.symbols.app/color
|
|
19
|
-
*/
|
|
20
|
-
const GRADIENT = {}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Themes
|
|
24
|
-
* @tutorial https://docs.symbols.app/theme
|
|
25
|
-
*/
|
|
26
|
-
const THEME = {
|
|
27
|
-
document: {
|
|
28
|
-
'@dark': {
|
|
29
|
-
color: 'white',
|
|
30
|
-
background: 'black'
|
|
31
|
-
},
|
|
32
|
-
'@light': {
|
|
33
|
-
background: 'white',
|
|
34
|
-
color: 'black'
|
|
35
|
-
},
|
|
36
|
-
'@midnight': {
|
|
37
|
-
background: '#112233',
|
|
38
|
-
color: 'white'
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Fonts
|
|
45
|
-
* @tutorial https://docs.symbols.app/font
|
|
46
|
-
*/
|
|
47
|
-
const FONT = {}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Font families
|
|
51
|
-
* @tutorial https://docs.symbols.app/font
|
|
52
|
-
*/
|
|
53
|
-
const FONT_FAMILY = {}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Typography
|
|
57
|
-
* @tutorial https://docs.symbols.app/typography
|
|
58
|
-
* @tutorial https://docs.symbols.app/sequence
|
|
59
|
-
*/
|
|
60
|
-
const TYPOGRAPHY = {
|
|
61
|
-
base: 16,
|
|
62
|
-
ratio: 1.2
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Spacing
|
|
67
|
-
* @tutorial https://docs.symbols.app/spacing
|
|
68
|
-
* @tutorial https://docs.symbols.app/sequence
|
|
69
|
-
*/
|
|
70
|
-
const SPACING = {}
|
|
71
|
-
|
|
72
|
-
const options = {
|
|
73
|
-
verbose: false,
|
|
74
|
-
useReset: true,
|
|
75
|
-
useDocumentTheme: true,
|
|
76
|
-
useFontImport: true,
|
|
77
|
-
useVariable: true,
|
|
78
|
-
useSvgSprite: true,
|
|
79
|
-
useIconSprite: true
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export default {
|
|
83
|
-
...options,
|
|
84
|
-
COLOR,
|
|
85
|
-
GRADIENT,
|
|
86
|
-
THEME,
|
|
87
|
-
ICONS: DEFAULT_ICONS,
|
|
88
|
-
TYPOGRAPHY,
|
|
89
|
-
SPACING,
|
|
90
|
-
FONT,
|
|
91
|
-
FONT_FAMILY
|
|
92
|
-
}
|
package/example/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import config from '../symbols.json'
|
|
4
|
-
import { create } from 'smbls'
|
|
5
|
-
|
|
6
|
-
import { App } from './app'
|
|
7
|
-
import designSystem from './designSystem'
|
|
8
|
-
import * as components from './components'
|
|
9
|
-
import pages from './pages'
|
|
10
|
-
|
|
11
|
-
create(App, {
|
|
12
|
-
key: config.key,
|
|
13
|
-
designSystem,
|
|
14
|
-
components,
|
|
15
|
-
pages
|
|
16
|
-
})
|
package/example/pages.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
'/': {
|
|
5
|
-
H1: 'Hello Symbols',
|
|
6
|
-
P: 'Lorem ipsum dolor sit amet',
|
|
7
|
-
TestComponent: {},
|
|
8
|
-
Link: {
|
|
9
|
-
href: 'https://symbols.app/developers',
|
|
10
|
-
target: '_blank',
|
|
11
|
-
':hover': {
|
|
12
|
-
'& svg': {
|
|
13
|
-
margin: '- Y - -'
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
Icon: {
|
|
17
|
-
transition: 'margin ease A',
|
|
18
|
-
margin: '- X - -',
|
|
19
|
-
name: 'arrow up right'
|
|
20
|
-
},
|
|
21
|
-
Span: 'Checkout Docs'
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
'/about': {
|
|
25
|
-
H3: 'This is Symbols starter-kit',
|
|
26
|
-
P: 'Lorem ipsum dolor sit amet',
|
|
27
|
-
Link: {
|
|
28
|
-
href: '/',
|
|
29
|
-
text: 'Go Back'
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
package/index.html
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<html background="#000">
|
|
2
|
-
<head>
|
|
3
|
-
<title>Documents</title>
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
|
|
5
|
-
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
6
|
-
|
|
7
|
-
<meta charset="UTF-8">
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<script type="module" src="./src/index.js"></script>
|
|
11
|
-
</body>
|
|
12
|
-
</html>
|
package/src/components.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
export const Header = {
|
|
4
|
-
display: 'flex',
|
|
5
|
-
minWidth: '100%',
|
|
6
|
-
padding: 'Z B',
|
|
7
|
-
align: 'center space-between',
|
|
8
|
-
Flex: {
|
|
9
|
-
gap: 'C',
|
|
10
|
-
childExtends: {
|
|
11
|
-
extends: 'Link',
|
|
12
|
-
textDecoration: ({ props }) =>
|
|
13
|
-
window.location.pathname === props.href ? 'underline' : 'none'
|
|
14
|
-
},
|
|
15
|
-
Text_logo: { href: '/', text: 'Hello!' },
|
|
16
|
-
Text_about: { href: '/about', text: 'About' }
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
ThemeSwitcher: {}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const ThemeSwitcher = {
|
|
23
|
-
display: 'flex',
|
|
24
|
-
gap: 'A2',
|
|
25
|
-
childExtends: {
|
|
26
|
-
isActive: (element, state) =>
|
|
27
|
-
state.globalTheme === element.key.toLowerCase(),
|
|
28
|
-
cursor: 'pointer',
|
|
29
|
-
'.isActive': {
|
|
30
|
-
fontWeight: '900'
|
|
31
|
-
},
|
|
32
|
-
onClick: (event, element, state, ctx) => {
|
|
33
|
-
console.log(element.key.toLowerCase())
|
|
34
|
-
ctx.designSystem.globalTheme = element.key.toLowerCase()
|
|
35
|
-
state.update({ globalTheme: element.key.toLowerCase() })
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
Dark: { text: 'Dark' },
|
|
39
|
-
Light: { text: 'Light' },
|
|
40
|
-
Midnight: { text: 'Midnight' }
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const Footer = {
|
|
44
|
-
padding: 'Z B',
|
|
45
|
-
order: 9
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export const TestComponent = {
|
|
49
|
-
padding: 'Z B',
|
|
50
|
-
round: 'A',
|
|
51
|
-
margin: 'A -Z C',
|
|
52
|
-
background: 'orange .35',
|
|
53
|
-
text: 'test',
|
|
54
|
-
':hover': {
|
|
55
|
-
background: 'orange .35 +35'
|
|
56
|
-
}
|
|
57
|
-
}
|
package/src/designSystem.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { DEFAULT_ICONS } from '@symbo.ls/default-icons'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Colors
|
|
7
|
-
* @tutorial https://docs.symbols.app/color
|
|
8
|
-
*/
|
|
9
|
-
const COLOR = {
|
|
10
|
-
transparent: 'transparent',
|
|
11
|
-
black: 'black',
|
|
12
|
-
white: 'white',
|
|
13
|
-
orange: '#E98232'
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Gradients
|
|
18
|
-
* @tutorial https://docs.symbols.app/color
|
|
19
|
-
*/
|
|
20
|
-
const GRADIENT = {}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Themes
|
|
24
|
-
* @tutorial https://docs.symbols.app/theme
|
|
25
|
-
*/
|
|
26
|
-
const THEME = {
|
|
27
|
-
document: {
|
|
28
|
-
'@dark': {
|
|
29
|
-
color: 'white',
|
|
30
|
-
background: 'black'
|
|
31
|
-
},
|
|
32
|
-
'@light': {
|
|
33
|
-
background: 'white',
|
|
34
|
-
color: 'black'
|
|
35
|
-
},
|
|
36
|
-
'@midnight': {
|
|
37
|
-
background: '#112233',
|
|
38
|
-
color: 'white'
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Fonts
|
|
45
|
-
* @tutorial https://docs.symbols.app/font
|
|
46
|
-
*/
|
|
47
|
-
const FONT = {}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Font families
|
|
51
|
-
* @tutorial https://docs.symbols.app/font
|
|
52
|
-
*/
|
|
53
|
-
const FONT_FAMILY = {}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Typography
|
|
57
|
-
* @tutorial https://docs.symbols.app/typography
|
|
58
|
-
* @tutorial https://docs.symbols.app/sequence
|
|
59
|
-
*/
|
|
60
|
-
const TYPOGRAPHY = {
|
|
61
|
-
base: 16,
|
|
62
|
-
ratio: 1.2
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Spacing
|
|
67
|
-
* @tutorial https://docs.symbols.app/spacing
|
|
68
|
-
* @tutorial https://docs.symbols.app/sequence
|
|
69
|
-
*/
|
|
70
|
-
const SPACING = {}
|
|
71
|
-
|
|
72
|
-
const options = {
|
|
73
|
-
verbose: true,
|
|
74
|
-
useReset: true,
|
|
75
|
-
useDocumentTheme: true,
|
|
76
|
-
useFontImport: true,
|
|
77
|
-
useVariable: true,
|
|
78
|
-
useSvgSprite: true,
|
|
79
|
-
useIconSprite: true
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export default {
|
|
83
|
-
...options,
|
|
84
|
-
COLOR,
|
|
85
|
-
GRADIENT,
|
|
86
|
-
THEME,
|
|
87
|
-
ICONS: DEFAULT_ICONS,
|
|
88
|
-
TYPOGRAPHY,
|
|
89
|
-
SPACING,
|
|
90
|
-
FONT,
|
|
91
|
-
FONT_FAMILY
|
|
92
|
-
}
|
package/src/index.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import { create } from 'smbls'
|
|
4
|
-
|
|
5
|
-
import designSystem from './designSystem'
|
|
6
|
-
import * as components from './components'
|
|
7
|
-
import pages from './pages'
|
|
8
|
-
|
|
9
|
-
async function initialize () {
|
|
10
|
-
let fetched_context
|
|
11
|
-
try {
|
|
12
|
-
fetched_context = await import('../smbls_dist')
|
|
13
|
-
} catch (error) {
|
|
14
|
-
console.error('Failed to load fetched_context:', error)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
create(
|
|
18
|
-
{},
|
|
19
|
-
fetched_context || {
|
|
20
|
-
designSystem,
|
|
21
|
-
components,
|
|
22
|
-
pages
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
initialize()
|
package/src/pages.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
'/': {
|
|
5
|
-
Header: {},
|
|
6
|
-
TestComponent: {},
|
|
7
|
-
Link: {
|
|
8
|
-
href: 'https://symbols.app/developers',
|
|
9
|
-
target: '_blank',
|
|
10
|
-
':hover': {
|
|
11
|
-
'& svg': {
|
|
12
|
-
margin: '- Y - -'
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
Icon: {
|
|
16
|
-
transition: 'margin ease A',
|
|
17
|
-
margin: '- X - -',
|
|
18
|
-
name: 'arrow up right'
|
|
19
|
-
},
|
|
20
|
-
Span: 'Checkout Docs'
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
'/about': {
|
|
24
|
-
Header: {},
|
|
25
|
-
Link: {
|
|
26
|
-
href: '/',
|
|
27
|
-
text: 'Go Back'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|