Skip to content

Commit 7fe6375

Browse files
committed
Configure basics using Stitches lib - See https://stitches.dev/docs/installation
1 parent 8cdeeac commit 7fe6375

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
"@fortawesome/react-fontawesome": "0.1.14",
118118
"@sentry/browser": "6.3.6",
119119
"@sentry/node": "6.3.6",
120+
"@stitches/react": "0.2.2",
120121
"@types/lodash.isequal": "4.5.5",
121122
"@unly/simple-logger": "1.0.0",
122123
"@unly/universal-language-detector": "2.0.3",
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { createCss } from '@stitches/react';
2+
3+
export const {
4+
styled,
5+
css,
6+
global,
7+
keyframes,
8+
getCssString,
9+
theme,
10+
} = createCss({
11+
theme: { // TODO Need to have part of our theme configured dynamically (based on the Customer.theme)
12+
colors: {
13+
gray400: 'gainsboro',
14+
gray500: 'lightgray',
15+
},
16+
},
17+
media: {
18+
bp1: '(min-width: 480px)',
19+
},
20+
utils: {
21+
marginX: (config) => (value) => ({
22+
marginLeft: value,
23+
marginRight: value,
24+
}),
25+
},
26+
});

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2681,6 +2681,11 @@
26812681
dependencies:
26822682
"@sinonjs/commons" "^1.7.0"
26832683

2684+
"@stitches/react@0.2.2":
2685+
version "0.2.2"
2686+
resolved "https://registry.yarnpkg.com/@stitches/react/-/react-0.2.2.tgz#8a2f8256835510c265ab20820f54a5bb0376bac6"
2687+
integrity sha512-/qRSX+ANPJg/0eLNr5bEywjkdvIfLbsaG2d8p83wPlI0MA7Yi9FzaRLk2H6DMAdJHuyu6ThY4HfHQIL35buY9g==
2688+
26842689
"@storybook/addon-a11y@6.2.9":
26852690
version "6.2.9"
26862691
resolved "https://registry.yarnpkg.com/@storybook/addon-a11y/-/addon-a11y-6.2.9.tgz#8386d73343db03c15d07f6bf927a4030d441d1ff"

0 commit comments

Comments
 (0)