polaris_tokens 1.1.0.pre.beta.1

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.
@@ -0,0 +1,66 @@
1
+ $color-purple-lighter: rgb(246, 240, 253);
2
+ $color-purple-light: rgb(227, 208, 255);
3
+ $color-purple-base: rgb(156, 106, 222);
4
+ $color-purple-dark: rgb(80, 36, 143);
5
+ $color-purple-darker: rgb(35, 0, 81);
6
+ $color-purple-text: rgb(80, 73, 90);
7
+ $color-indigo-lighter: rgb(244, 245, 250);
8
+ $color-indigo-light: rgb(179, 188, 245);
9
+ $color-indigo-base: rgb(92, 106, 196);
10
+ $color-indigo-dark: rgb(32, 46, 120);
11
+ $color-indigo-darker: rgb(0, 6, 57);
12
+ $color-indigo-text: rgb(62, 65, 85);
13
+ $color-blue-lighter: rgb(235, 245, 250);
14
+ $color-blue-light: rgb(180, 225, 250);
15
+ $color-blue-base: rgb(0, 122, 206);
16
+ $color-blue-dark: rgb(8, 78, 138);
17
+ $color-blue-darker: rgb(0, 20, 41);
18
+ $color-blue-text: rgb(62, 78, 87);
19
+ $color-teal-lighter: rgb(224, 245, 245);
20
+ $color-teal-light: rgb(183, 236, 236);
21
+ $color-teal-base: rgb(71, 193, 191);
22
+ $color-teal-dark: rgb(0, 132, 142);
23
+ $color-teal-darker: rgb(0, 49, 53);
24
+ $color-teal-text: rgb(64, 83, 82);
25
+ $color-green-lighter: rgb(227, 241, 223);
26
+ $color-green-light: rgb(187, 229, 179);
27
+ $color-green-base: rgb(80, 184, 60);
28
+ $color-green-dark: rgb(16, 128, 67);
29
+ $color-green-darker: rgb(23, 54, 48);
30
+ $color-green-text: rgb(65, 79, 62);
31
+ $color-yellow-lighter: rgb(252, 241, 205);
32
+ $color-yellow-light: rgb(255, 234, 138);
33
+ $color-yellow-base: rgb(238, 194, 0);
34
+ $color-yellow-dark: rgb(156, 111, 25);
35
+ $color-yellow-darker: rgb(87, 59, 0);
36
+ $color-yellow-text: rgb(89, 81, 48);
37
+ $color-orange-lighter: rgb(252, 235, 219);
38
+ $color-orange-light: rgb(255, 197, 139);
39
+ $color-orange-base: rgb(244, 147, 66);
40
+ $color-orange-dark: rgb(192, 87, 23);
41
+ $color-orange-darker: rgb(74, 21, 4);
42
+ $color-orange-text: rgb(89, 68, 48);
43
+ $color-red-lighter: rgb(251, 234, 229);
44
+ $color-red-light: rgb(254, 173, 154);
45
+ $color-red-base: rgb(222, 54, 24);
46
+ $color-red-dark: rgb(191, 7, 17);
47
+ $color-red-darker: rgb(51, 1, 1);
48
+ $color-red-text: rgb(88, 60, 53);
49
+ $color-white-base: rgb(255, 255, 255);
50
+ $color-sky-lighter: rgb(249, 250, 251);
51
+ $color-sky-light: rgb(244, 246, 248);
52
+ $color-sky-base: rgb(223, 227, 232);
53
+ $color-sky-dark: rgb(196, 205, 213);
54
+ $color-ink-lightest: rgb(145, 158, 171);
55
+ $color-ink-lighter: rgb(99, 115, 129);
56
+ $color-ink-light: rgb(69, 79, 91);
57
+ $color-ink-base: rgb(33, 43, 54);
58
+ $color-black-base: rgb(0, 0, 0);
59
+ $spacing-none: 0;
60
+ $spacing-extra-tight: 4px;
61
+ $spacing-tight: 8px;
62
+ $spacing-base: 16px;
63
+ $spacing-loose: 20px;
64
+ $spacing-extra-loose: 32px;
65
+ $font-stack-base: "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif";
66
+ $font-stack-monospace: "Monaco, Consolas, 'Lucida Console', monospace";
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ spacingNone: 0,
3
+ spacingExtraTight: '4px',
4
+ spacingTight: '8px',
5
+ spacingBase: '16px',
6
+ spacingLoose: '20px',
7
+ spacingExtraLoose: '32px',
8
+ };
@@ -0,0 +1,8 @@
1
+ :root {
2
+ --spacing-none: 0;
3
+ --spacing-extra-tight: 4px;
4
+ --spacing-tight: 8px;
5
+ --spacing-base: 16px;
6
+ --spacing-loose: 20px;
7
+ --spacing-extra-loose: 32px;
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "spacing-none": 0,
3
+ "spacing-extra-tight": "4px",
4
+ "spacing-tight": "8px",
5
+ "spacing-base": "16px",
6
+ "spacing-loose": "20px",
7
+ "spacing-extra-loose": "32px"
8
+ }
@@ -0,0 +1,8 @@
1
+ $polaris-spacing-map: (
2
+ 'spacing-none': (0),
3
+ 'spacing-extra-tight': (4px),
4
+ 'spacing-tight': (8px),
5
+ 'spacing-base': (16px),
6
+ 'spacing-loose': (20px),
7
+ 'spacing-extra-loose': (32px)
8
+ );
@@ -0,0 +1,47 @@
1
+ {
2
+ "aliases": {},
3
+ "props": {
4
+ "spacing-none": {
5
+ "type": "number",
6
+ "category": "spacing",
7
+ "name": "spacing-none",
8
+ "value": 0,
9
+ "originalValue": 0
10
+ },
11
+ "spacing-extra-tight": {
12
+ "type": "number",
13
+ "category": "spacing",
14
+ "name": "spacing-extra-tight",
15
+ "value": "4px",
16
+ "originalValue": "4px"
17
+ },
18
+ "spacing-tight": {
19
+ "type": "number",
20
+ "category": "spacing",
21
+ "name": "spacing-tight",
22
+ "value": "8px",
23
+ "originalValue": "8px"
24
+ },
25
+ "spacing-base": {
26
+ "type": "number",
27
+ "category": "spacing",
28
+ "name": "spacing-base",
29
+ "value": "16px",
30
+ "originalValue": "16px"
31
+ },
32
+ "spacing-loose": {
33
+ "type": "number",
34
+ "category": "spacing",
35
+ "name": "spacing-loose",
36
+ "value": "20px",
37
+ "originalValue": "20px"
38
+ },
39
+ "spacing-extra-loose": {
40
+ "type": "number",
41
+ "category": "spacing",
42
+ "name": "spacing-extra-loose",
43
+ "value": "32px",
44
+ "originalValue": "32px"
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,6 @@
1
+ $spacing-none: 0;
2
+ $spacing-extra-tight: 4px;
3
+ $spacing-tight: 8px;
4
+ $spacing-base: 16px;
5
+ $spacing-loose: 20px;
6
+ $spacing-extra-loose: 32px;
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ fontStackBase:
3
+ "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif",
4
+ fontStackMonospace: "Monaco, Consolas, 'Lucida Console', monospace",
5
+ };
@@ -0,0 +1,4 @@
1
+ :root {
2
+ --font-stack-base: "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif";
3
+ --font-stack-monospace: "Monaco, Consolas, 'Lucida Console', monospace";
4
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "font-stack-base":
3
+ "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif",
4
+ "font-stack-monospace": "Monaco, Consolas, 'Lucida Console', monospace"
5
+ }
@@ -0,0 +1,7 @@
1
+ $polaris-typography-map: (
2
+ 'font-stack-base':
3
+ (
4
+ "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif"
5
+ ),
6
+ 'font-stack-monospace': ("Monaco, Consolas, 'Lucida Console', monospace")
7
+ );
@@ -0,0 +1,21 @@
1
+ {
2
+ "aliases": {},
3
+ "props": {
4
+ "font-stack-base": {
5
+ "type": "string",
6
+ "category": "font-family",
7
+ "name": "font-stack-base",
8
+ "value":
9
+ "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif",
10
+ "originalValue":
11
+ "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif"
12
+ },
13
+ "font-stack-monospace": {
14
+ "type": "string",
15
+ "category": "font-family",
16
+ "name": "font-stack-monospace",
17
+ "value": "Monaco, Consolas, 'Lucida Console', monospace",
18
+ "originalValue": "Monaco, Consolas, 'Lucida Console', monospace"
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,2 @@
1
+ $font-stack-base: "-apple-system, 'BlinkMacSystemFont', 'San Francisco', 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif";
2
+ $font-stack-monospace: "Monaco, Consolas, 'Lucida Console', monospace";
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/index.common.js');
@@ -0,0 +1,7 @@
1
+ module PolarisTokens
2
+ require 'polaris_tokens/rails/engine'
3
+
4
+ def self.root
5
+ @root ||= Pathname.new(File.expand_path('../..', __FILE__))
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ module PolarisTokens
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ initializer 'polaris.tokens' do |app|
5
+ config.assets.paths << PolarisTokens.root.join('dist')
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+ require 'json'
3
+
4
+ module PolarisTokens
5
+ package_json_path = File.join(__dir__, '../../package.json')
6
+ package_json_data = File.read(package_json_path)
7
+ package_json = JSON.parse(package_json_data)
8
+
9
+ VERSION = package_json['version']
10
+ end
@@ -0,0 +1,97 @@
1
+ {
2
+ "name": "@shopify/polaris-tokens",
3
+ "version": "1.1.0-beta.1",
4
+ "description": "Design Tokens for the Polaris Design System",
5
+ "main": "index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "test": "jest",
9
+ "test-watch": "nodemon --exec 'npm-run-all dist test' --watch ./tokens --watch ./formats --watch ./gulpfile.js --watch ./scripts",
10
+ "clean": "rimraf ./dist",
11
+ "getTokensFromInvision": "node ./scripts/getTokensFromInvision.js",
12
+ "predist": "yarn clean",
13
+ "dist": "npm-run-all dist:**",
14
+ "dist-ci": "npm-run-all dist:* dist:*:*",
15
+ "dist:gulp": "gulp",
16
+ "dist:docs": "gulp docs",
17
+ "dist:prettier": "prettier ./{dist,docs}/*.{scss,css,json,js} --write",
18
+ "dist:colors:prettier-sketchpalette": "prettier ./dist/*.sketchpalette --write --parser json",
19
+ "dist:colors:ase": "node ./scripts/ase-encode.js",
20
+ "dist:colors:clr:excludeFromCI": "ase2clr ./dist/colors.ase ./dist/colors.clr",
21
+ "dist:colors:rename-palettes": "renamer --find colors --replace Polaris ./dist/colors.{ase,clr,sketchpalette}",
22
+ "lint": "npm-run-all lint:**",
23
+ "lint:js": "eslint . --format codeframe",
24
+ "lint:tokens": "yamllint ./tokens/*.yml",
25
+ "watch": "gulp watch",
26
+ "heroku-postbuild": "yarn dist-ci",
27
+ "start": "http-server docs"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/Shopify/polaris-tokens.git"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public",
35
+ "@shopify:registry": "https://registry.npmjs.org"
36
+ },
37
+ "keywords": [
38
+ "polaris",
39
+ "design-tokens"
40
+ ],
41
+ "author": "Shopify",
42
+ "license": "MIT",
43
+ "bugs": {
44
+ "url": "https://github.com/Shopify/polaris-tokens/issues"
45
+ },
46
+ "eslintConfig": {
47
+ "extends": [
48
+ "plugin:shopify/node",
49
+ "plugin:shopify/esnext",
50
+ "plugin:shopify/prettier"
51
+ ],
52
+ "rules": {
53
+ "func-style": [
54
+ "error",
55
+ "declaration",
56
+ {
57
+ "allowArrowFunctions": true
58
+ }
59
+ ]
60
+ }
61
+ },
62
+ "homepage": "https://github.com/Shopify/polaris-tokens#readme",
63
+ "devDependencies": {
64
+ "ase-util": "^1.0.1",
65
+ "ase-utils": "^0.1.1",
66
+ "browser-sync": "^2.23.6",
67
+ "dashify": "^1.0.0",
68
+ "eslint": "^4.19.1",
69
+ "eslint-config-prettier": "^2.9.0",
70
+ "eslint-plugin-prettier": "^2.6.0",
71
+ "eslint-plugin-shopify": "^20.0.0",
72
+ "fs-extra": "^5.0.0",
73
+ "gulp": "^3.9.1",
74
+ "gulp-load-plugins": "^1.5.0",
75
+ "gulp-plumber": "^1.2.0",
76
+ "gulp-rename": "^1.2.2",
77
+ "gulp-restart": "^0.1.1",
78
+ "gulp-sass": "^4.0.1",
79
+ "gulp-sourcemaps": "^2.6.4",
80
+ "gulp-theo": "^2.0.0-beta.1",
81
+ "http-server": "^0.11.1",
82
+ "immutable": "^3.8.2",
83
+ "jest": "^22.4.3",
84
+ "js-yaml": "^3.11.0",
85
+ "lodash": "^4.17.5",
86
+ "node-fetch": "^2.1.2",
87
+ "nodemon": "^1.17.3",
88
+ "npm-run-all": "^4.1.2",
89
+ "prettier": "1.12.0",
90
+ "renamer": "^0.6.1",
91
+ "rimraf": "^2.6.2",
92
+ "run-sequence": "^2.2.1",
93
+ "theo": "^7.0.1",
94
+ "tinycolor2": "^1.4.1",
95
+ "yaml-lint": "^1.2.3"
96
+ }
97
+ }
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: polaris_tokens
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0.pre.beta.1
5
+ platform: ruby
6
+ authors:
7
+ - Shopify
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-04-17 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Design Tokens for the Polaris Design System
14
+ email:
15
+ - info@shopify.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE.md
21
+ - README.md
22
+ - dist/Polaris.ase
23
+ - dist/Polaris.clr
24
+ - dist/Polaris.sketchpalette
25
+ - dist/colors.color-map.scss
26
+ - dist/colors.common.js
27
+ - dist/colors.custom-properties.css
28
+ - dist/colors.json
29
+ - dist/colors.map.scss
30
+ - dist/colors.raw.json
31
+ - dist/colors.scss
32
+ - dist/index.common.js
33
+ - dist/index.custom-properties.css
34
+ - dist/index.d.ts
35
+ - dist/index.json
36
+ - dist/index.map.scss
37
+ - dist/index.raw.json
38
+ - dist/index.scss
39
+ - dist/spacing.common.js
40
+ - dist/spacing.custom-properties.css
41
+ - dist/spacing.json
42
+ - dist/spacing.map.scss
43
+ - dist/spacing.raw.json
44
+ - dist/spacing.scss
45
+ - dist/typography.common.js
46
+ - dist/typography.custom-properties.css
47
+ - dist/typography.json
48
+ - dist/typography.map.scss
49
+ - dist/typography.raw.json
50
+ - dist/typography.scss
51
+ - index.js
52
+ - lib/polaris_tokens.rb
53
+ - lib/polaris_tokens/rails/engine.rb
54
+ - lib/polaris_tokens/version.rb
55
+ - package.json
56
+ homepage: https://github.com/Shopify/polaris-tokens#readme
57
+ licenses:
58
+ - MIT
59
+ metadata: {}
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.3.0
69
+ - - "!="
70
+ - !ruby/object:Gem::Version
71
+ version: 2.4.0
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">"
75
+ - !ruby/object:Gem::Version
76
+ version: 1.3.1
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 2.7.6
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: Design Tokens for the Polaris Design System
83
+ test_files: []