Skip to content

Commit 5eea343

Browse files
Merge pull request #2 from tokens-studio/figma-tokens
Figma Tokens Update
2 parents 44a89a9 + 94233ec commit 5eea343

9 files changed

+403
-369
lines changed

button/button-business-blue.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Do not edit directly, this file was auto-generated
3+
*/
4+
15
:host {
26
--button-bg-color: #3182ce;
37
--button-border-radius: 0;

button/button-business-green.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Do not edit directly, this file was auto-generated
3+
*/
4+
15
:host {
26
--button-bg-color: #38a169;
37
--button-border-radius: 0;

button/button-business-purple.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Do not edit directly, this file was auto-generated
3+
*/
4+
15
:host {
26
--button-bg-color: #805ad5;
37
--button-border-radius: 0;

button/button-casual-blue.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Do not edit directly, this file was auto-generated
3+
*/
4+
15
:host {
26
--button-bg-color: #3182ce;
37
--button-border-radius: 8px;

button/button-casual-green.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Do not edit directly, this file was auto-generated
3+
*/
4+
15
:host {
26
--button-bg-color: #38a169;
37
--button-border-radius: 8px;

button/button-casual-purple.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Do not edit directly, this file was auto-generated
3+
*/
4+
15
:host {
26
--button-bg-color: #805ad5;
37
--button-border-radius: 8px;

package-lock.json

Lines changed: 370 additions & 360 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"description": "",
55
"type": "module",
66
"scripts": {
7-
"build:demo": "rimraf dist && rollup -c rollup.config.js",
87
"build:tokens": "node build-tokens.cjs",
9-
"demo": "wds --open --watch --node-resolve"
8+
"demo:dev": "wds --open --watch --node-resolve",
9+
"demo:build": "rimraf dist && rollup -c rollup.config.js",
10+
"demo:start": "http-server -o -c-1 dist"
1011
},
1112
"keywords": [],
1213
"author": "",
@@ -22,9 +23,8 @@
2223
"@rollup/plugin-node-resolve": "^15.0.2",
2324
"@web/dev-server": "^0.2.1",
2425
"@web/rollup-plugin-html": "^2.0.0",
25-
"acorn-import-assertions": "^1.9.0",
2626
"rimraf": "^5.0.1",
2727
"rollup": "^3.22.0",
28-
"rollup-plugin-import-assert": "^3.0.1"
28+
"rollup-plugin-import-css": "^3.2.1"
2929
}
3030
}

rollup.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { rollupPluginHTML as html } from "@web/rollup-plugin-html";
22
import dynamicImportVars from "@rollup/plugin-dynamic-import-vars";
33
import nodeResolve from "@rollup/plugin-node-resolve";
4-
import { importAssertionsPlugin } from "rollup-plugin-import-assert";
5-
import { importAssertions } from "acorn-import-assertions";
4+
import css from "rollup-plugin-import-css";
65

76
export default {
87
input: "index.html",
98
output: { dir: "dist" },
109
plugins: [
1110
nodeResolve(),
12-
importAssertionsPlugin(),
13-
// FIXME: This dynamic import vars plugin doesn't seem to play well with import assertions..???
11+
// see https://github.com/rollup/plugins/issues/1503
12+
// if we put modules to true, we force CSSStyleSheet (rather than CSS String)
13+
// Once the issue above is solved, the use of this option can be removed
14+
css({ modules: true }),
1415
dynamicImportVars(),
1516
html(),
1617
],
17-
acornInjectPlugins: [importAssertions],
1818
};

0 commit comments

Comments
 (0)