@symbo.ls/default-config 2.11.244 → 2.11.249

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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@symbo.ls/default-config",
3
- "version": "2.11.244",
3
+ "version": "2.11.249",
4
4
  "source": "src/index.js",
5
5
  "main": "src/index.js",
6
6
  "dependencies": {
7
7
  "@symbo.ls/default-icons": "latest"
8
8
  },
9
9
  "license": "MIT",
10
- "gitHead": "83dcc5bed6674f0fa0dd1ae675e3a25fb2dd90d2"
10
+ "gitHead": "9c800fdfdff5d9a49083e7d4f849189a35b8054c"
11
11
  }
package/src/color.js CHANGED
@@ -22,7 +22,7 @@ export const COLOR = {
22
22
  gray4: '#BDBDC1',
23
23
 
24
24
  title: ['--black 1', '--white 1'],
25
- caption: ['--gray2 1', '--gray4 1'],
25
+ caption: ['--gray 1 +16', '--gray4 1'],
26
26
  paragraph: ['--gray2 1', '--white 1']
27
27
  }
28
28
 
package/src/index.js CHANGED
@@ -6,6 +6,7 @@ import { THEME } from './theme'
6
6
  import { TYPOGRAPHY } from './typography'
7
7
  import { SPACING } from './spacing'
8
8
  import { FONT, FONT_FAMILY } from './font'
9
+ import { MEDIA } from './media'
9
10
 
10
11
  export const DEFAULT_CONFIG = {
11
12
  version: '0.0.1',
@@ -18,25 +19,7 @@ export const DEFAULT_CONFIG = {
18
19
  FONT_FAMILY,
19
20
  TIMING: {},
20
21
  ICONS,
21
- MEDIA: {
22
- tv: '(min-width: 2780px)',
23
-
24
- screenL: '(max-width: 1920px)',
25
- screenM: '(max-width: 1680px)',
26
- screenS: '(max-width: 1440px)',
27
- tabletL: '(max-width: 1366px)',
28
- tabletM: '(max-width: 1280px)',
29
- tabletS: '(max-width: 1024px)',
30
- mobileL: '(max-width: 768px)',
31
- mobileM: '(max-width: 560px)',
32
- mobileS: '(max-width: 480px)',
33
- mobileXS: '(max-width: 375px)',
34
-
35
- light: '(prefers-color-scheme: light)',
36
- dark: '(prefers-color-scheme: dark)',
37
-
38
- print: 'print'
39
- },
22
+ MEDIA,
40
23
  DEVICES: {},
41
24
  CASES: {},
42
25
  SVG: {} // TODO: Check with @nikoloza on this
package/src/media.js ADDED
@@ -0,0 +1,31 @@
1
+ 'use strict'
2
+
3
+ export const MEDIA = {
4
+ tv: '(min-width: 2780px)',
5
+
6
+ screenL: '(max-width: 1920px)',
7
+ 'screenL<': '(min-width: 1920px)',
8
+ screenM: '(max-width: 1680px)',
9
+ 'screenM<': '(min-width: 1680px)',
10
+ screenS: '(max-width: 1440px)',
11
+ 'screenS<': '(min-width: 1440px)',
12
+ tabletL: '(max-width: 1366px)',
13
+ 'tabletL<': '(min-width: 1366px)',
14
+ tabletM: '(max-width: 1280px)',
15
+ 'tabletM<': '(min-width: 1280px)',
16
+ tabletS: '(max-width: 1024px)',
17
+ 'tabletS<': '(min-width: 1024px)',
18
+ mobileL: '(max-width: 768px)',
19
+ 'mobileL<': '(min-width: 768px)',
20
+ mobileM: '(max-width: 560px)',
21
+ 'mobileM<': '(min-width: 560px)',
22
+ mobileS: '(max-width: 480px)',
23
+ 'mobileS<': '(min-width: 480px)',
24
+ mobileXS: '(max-width: 375px)',
25
+ 'mobileXS<': '(min-width: 375px)',
26
+
27
+ light: '(prefers-color-scheme: light)',
28
+ dark: '(prefers-color-scheme: dark)',
29
+
30
+ print: 'print'
31
+ }
package/src/spacing.js CHANGED
@@ -1,7 +1,12 @@
1
1
  'use strict'
2
2
 
3
3
  export const SPACING = {
4
- base: 16,
5
4
  ratio: 1.618,
6
- subSequence: true
5
+ subSequence: true,
6
+ '@tabletS': {
7
+ ratio: 1.45
8
+ },
9
+ '@mobileM': {
10
+ ratio: 1.2
11
+ }
7
12
  }
package/src/typography.js CHANGED
@@ -4,5 +4,12 @@ export const TYPOGRAPHY = {
4
4
  base: 16,
5
5
  ratio: 1.25,
6
6
  subSequence: true,
7
- templates: {}
7
+ templates: {},
8
+ '@tabletS': {
9
+ base: 15,
10
+ ratio: 1.23
11
+ }
12
+ // '@mobileM': {
13
+ // ratio: 1.125
14
+ // }
8
15
  }