@symbo.ls/default-config 2.9.0

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/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # Default Config
2
+ This is a default repository for Symbols Design Systems. It shows how it works and provides some default propoerties. Check out the [docs page](http://docs.symbols.app/intro#configuration) to learn more.
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@symbo.ls/default-config",
3
+ "version": "2.9.0",
4
+ "source": "src/index.js",
5
+ "main": "src/index.js",
6
+ "license": "MIT",
7
+ "scripts": {
8
+ "jsonify": "npx parcel build src/index.js && node bin/json.js"
9
+ },
10
+ "gitHead": "6378f05ba88065ef932810a1582f45e0384feafc"
11
+ }
package/src/color.js ADDED
@@ -0,0 +1,44 @@
1
+ 'use strict'
2
+
3
+ export const COLOR = {
4
+ transparent: 'rgba(0, 0, 0, 0)',
5
+ black: 'black',
6
+ blue: '#0079FD',
7
+ indigo: '#50E1FF',
8
+ green: '#59AC56',
9
+ red: '#FE5B47',
10
+ yellow: '#EDCB38',
11
+ orange: '#E2862F',
12
+ brown: '#7D6755',
13
+ pink: '#FD8ABF',
14
+ purple: '#7345AF',
15
+ white: 'white'
16
+ }
17
+
18
+ export const GRADIENT = {
19
+ 'gradient-dark': `linear-gradient(0deg,
20
+ rgba(0,0,0,0.06) 0%,
21
+ rgba(0,0,0,0.07) 100%
22
+ )`,
23
+ 'gradient-dark-active': `linear-gradient(0deg,
24
+ rgba(0,0,0,0.09) 0%,
25
+ rgba(0,0,0,0.1) 100%
26
+ )`,
27
+ 'gradient-light': `linear-gradient(
28
+ 0deg,
29
+ rgba(255,255,255,0.05) 0%,
30
+ rgba(255,255,255,0.06) 100%
31
+ )`,
32
+ 'gradient-light-active': `linear-gradient(
33
+ 0deg,
34
+ rgba(255,255,255,0.09) 0%,
35
+ rgba(255,255,255,0.10) 100%
36
+ )`,
37
+ 'gradient-colorful': `linear-gradient(60deg,
38
+ #00A2E7 0%,
39
+ #185DF3 31%,
40
+ #1E54F0 36%,
41
+ #8B4CCA 69%,
42
+ #C66894 100%
43
+ )`,
44
+ }
@@ -0,0 +1 @@
1
+ {"version":"0.0.1","COLOR":{"transparent":"rgba(0, 0, 0, 0)","black":"black","blue":"#0079FD","indigo":"#50E1FF","green":"#59AC56","red":"#FE5B47","yellow":"#EDCB38","orange":"#E2862F","brown":"#7D6755","pink":"#FD8ABF","purple":"#7345AF","white":"white"},"GRADIENT":{"gradient-dark":"linear-gradient(0deg,\n rgba(0,0,0,0.06) 0%,\n rgba(0,0,0,0.07) 100%\n )","gradient-dark-active":"linear-gradient(0deg,\n rgba(0,0,0,0.09) 0%,\n rgba(0,0,0,0.1) 100%\n )","gradient-light":"linear-gradient(\n 0deg,\n rgba(255,255,255,0.05) 0%,\n rgba(255,255,255,0.06) 100%\n )","gradient-light-active":"linear-gradient(\n 0deg,\n rgba(255,255,255,0.09) 0%,\n rgba(255,255,255,0.10) 100%\n )"},"THEME":{"document":{"variants":{"light":{"color":"black","background":"white"},"dark":{"color":"white","background":"black"}}},"primary":{"color":"white","background":"blue"},"secondary":{"variants":{"light":{"color":"white","background":"gradient-light"},"dark":{"color":"white","background":"gradient-dark-active"}}}},"FONT":{"Karla":[{"url":"https://symbols-fonts.s3.us-west-1.amazonaws.com/Karla/Karla-VariableFont_wght.ttf","fontWeight":"variable","fontStyle":"normal","fontDisplay":"swap","unicodeRange":"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF"},{"url":"https://symbols-fonts.s3.us-west-1.amazonaws.com/Karla/Karla-VariableFont_wght.ttf","fontStyle":"normal","fontWeight":"variable","fontDisplay":"swap","unicodeRange":"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"}]},"FONT_FAMILY":{"StartWithKarla":{"isDefault":true,"value":["\"Karla\""],"type":"serif"}}}
package/src/font.js ADDED
@@ -0,0 +1,29 @@
1
+ 'use strict'
2
+
3
+ const S3_BUCKET = 'https://symbols-fonts.s3.us-west-1.amazonaws.com'
4
+ const KarlaVariable = '/Karla/Karla-VariableFont_wght.ttf'
5
+ const KarlaItalicVariable = '/Karla/Karla-VariableFont_wght.ttf' // eslint-disable-line
6
+
7
+ export const FONT = {
8
+ Karla: [{
9
+ url: S3_BUCKET + KarlaVariable,
10
+ fontWeight: 'variable',
11
+ fontStyle: 'normal',
12
+ fontDisplay: 'swap',
13
+ unicodeRange: 'U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF'
14
+ }, {
15
+ url: S3_BUCKET + KarlaVariable,
16
+ fontStyle: 'normal',
17
+ fontWeight: 'variable',
18
+ fontDisplay: 'swap',
19
+ unicodeRange: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD'
20
+ }]
21
+ }
22
+
23
+ export const FONT_FAMILY = {
24
+ StartWithKarla: {
25
+ isDefault: true,
26
+ value: ['"Karla"'],
27
+ type: 'serif'
28
+ }
29
+ }
package/src/index.js ADDED
@@ -0,0 +1,23 @@
1
+ 'use strict'
2
+
3
+ import { COLOR, GRADIENT } from './color'
4
+ import { THEME } from './theme'
5
+ import { TYPOGRAPHY } from './typography'
6
+ import { SPACING } from './spacing'
7
+ import { FONT, FONT_FAMILY } from './font'
8
+
9
+ export default {
10
+ version: '0.0.1',
11
+ COLOR,
12
+ GRADIENT,
13
+ THEME,
14
+ TYPOGRAPHY,
15
+ SPACING,
16
+ FONT,
17
+ FONT_FAMILY,
18
+ TIMING: {},
19
+ ICONS: {},
20
+ MEDIA: {},
21
+ DEVICES: {},
22
+ CASES: {}
23
+ }
package/src/spacing.js ADDED
@@ -0,0 +1,6 @@
1
+ 'use strict'
2
+
3
+ export const SPACING = {
4
+ base: 16,
5
+ ratio: 1.618
6
+ }
package/src/theme.js ADDED
@@ -0,0 +1,91 @@
1
+ 'use strict'
2
+
3
+ const PRIORITIES = {
4
+ primary: {
5
+ '@dark': {
6
+ color: 'white',
7
+ background: 'gradient-colorful'
8
+ },
9
+ '@light': {
10
+ color: 'white',
11
+ background: 'gradient-colorful'
12
+ }
13
+ },
14
+
15
+ secondary: {
16
+ '@light': {
17
+ color: 'white',
18
+ background: 'blue'
19
+ },
20
+ '@dark': {
21
+ color: 'white',
22
+ background: 'blue'
23
+ }
24
+ },
25
+
26
+ tertiary: {
27
+ '@light': {
28
+ color: 'white',
29
+ background: 'gradient-light'
30
+ },
31
+ '@dark': {
32
+ color: 'white',
33
+ background: 'gradient-dark-active'
34
+ }
35
+ },
36
+
37
+ quaternary: {
38
+ '@dark': {
39
+ color: 'gray9',
40
+ background: 'gradient-light',
41
+
42
+ ':hover': {
43
+ color: 'gray12',
44
+ background: 'gradient-light-active'
45
+ },
46
+ ':active': {
47
+ color: 'gray12',
48
+ background: 'gradient-light-active'
49
+ },
50
+
51
+ '.active': {
52
+ color: 'gray12',
53
+ background: 'gradient-light-active'
54
+ }
55
+ },
56
+
57
+ '@light': {
58
+ color: 'gray3',
59
+ background: 'gradient-dark',
60
+
61
+ ':hover': {
62
+ color: 'gray1',
63
+ background: 'gradient-dark-active'
64
+ },
65
+ ':active': {
66
+ color: 'gray1',
67
+ background: 'gradient-dark-active'
68
+ },
69
+
70
+ '.active': {
71
+ color: 'gray1',
72
+ background: 'gradient-dark-active'
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+ export const THEME = {
79
+ document: {
80
+ '@light': {
81
+ color: 'black',
82
+ background: 'white'
83
+ },
84
+ '@dark': {
85
+ color: 'white',
86
+ background: 'black'
87
+ }
88
+ },
89
+
90
+ ...PRIORITIES
91
+ }
@@ -0,0 +1,7 @@
1
+ 'use strict'
2
+
3
+ export const TYPOGRAPHY = {
4
+ base: 16,
5
+ ratio: 1.125,
6
+ styles: {}
7
+ }