Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 🎨 V1 Release candidate #1849

Merged
merged 317 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
317 commits
Select commit Hold shift + click to select a range
a8a3a94
test
mimarz Apr 22, 2024
f962cd1
wip
mimarz Apr 22, 2024
f30b20f
Added --out for cli
mimarz Apr 22, 2024
3672177
fixed release-v1 migration for tokens
mimarz Apr 22, 2024
fe47cb9
Update tokens-v2.ts
Febakke May 21, 2024
cf47c6c
opt-in for storefront tokens
mimarz Apr 22, 2024
fffc973
Update tokens-v2.ts
Febakke May 22, 2024
258a27d
Merge branch 'main' into feat/tokens-v2
mimarz May 23, 2024
b681ea7
Renamed theme4 to brreg
mrosvik May 23, 2024
b279b5d
add codemod for classnames
Barsnes May 23, 2024
eb99f1c
dictionary.from
Barsnes May 23, 2024
754f7e7
cleanup
Barsnes May 23, 2024
4b51612
Added colors to dictionary
Thunear May 23, 2024
05d8c5c
css & react: renamed first, second, third to brand1, brand2, brand3 +…
mimarz May 23, 2024
cbebec7
added copy of legacy tokens
mimarz May 23, 2024
8a4db8d
format
mimarz May 23, 2024
5a05b55
added revert migrate for light-dark
mimarz May 23, 2024
d3bf37e
tweaks to css var migrate
mimarz May 23, 2024
03ec0be
revert light-dark token rename
mimarz May 23, 2024
041ad7f
renamed codemod to match rest
mimarz May 23, 2024
12a7e6e
rename to match
mimarz May 23, 2024
aaaedef
renames for clarity
mimarz May 23, 2024
379e022
simplify migrate to v1
mimarz May 23, 2024
cce4b00
refactor new class rename
mimarz May 23, 2024
624e4c9
Merge branch 'main' into feat/tokens-v2
mimarz May 23, 2024
20ab1b6
fix storefront lint error
mimarz May 23, 2024
3b260fa
updated ignore
mimarz May 23, 2024
0e797f2
more composable codemod
mimarz May 23, 2024
6094935
simplified migrations
mimarz May 23, 2024
a005688
fixed typos
mimarz May 23, 2024
2b83688
generate new tokens
mimarz May 23, 2024
0ffaea7
playing with color-scheme
mimarz May 23, 2024
f8eecb5
suggestion
mimarz May 24, 2024
f2f7b64
Added size shorthand to typography tokens
Febakke May 24, 2024
5a57fbc
updated interactive
mimarz May 24, 2024
3508352
generated new tokens
mimarz May 24, 2024
8be5774
added typography migration
mimarz May 24, 2024
e221e6c
updated --fds-semantic-surface-neutral-dark migration
mimarz May 24, 2024
aba1c99
jscodeshift for `className`
Barsnes May 24, 2024
ce595f3
update tooltip css
mimarz May 24, 2024
3e292a9
update --fds-semantic-border-input-hover migration
mimarz May 24, 2024
c4d6dcc
add support for TemplateLiterals
Barsnes May 24, 2024
30fdfd1
updated plugins
mimarz May 24, 2024
81a2951
updated tooltip again
mimarz May 24, 2024
3139542
Update beta-to-v1.ts
Febakke May 24, 2024
7aab72d
print options, start tests
Barsnes May 24, 2024
cb41cdf
fix template literal in funtion
Barsnes May 24, 2024
4c012fb
tweaked delete msg
mimarz May 24, 2024
453b531
updated print for deleted variables during migration
mimarz May 24, 2024
df62baf
updated
mimarz May 24, 2024
4ccf18b
refactor to be recursive
Barsnes May 24, 2024
08e692c
fix typescript
Barsnes May 24, 2024
2b6ed99
delete theme 3 and 4
mrosvik May 24, 2024
4640697
add nester ternary check
Barsnes May 24, 2024
f3afb97
remove . before Mode
mrosvik May 24, 2024
f5e6c21
Semantic
mrosvik May 24, 2024
9ff9cc8
missing arg
Barsnes May 24, 2024
c50b293
tsx parser
Barsnes May 24, 2024
fc2f099
Update beta-to-v1.ts
Febakke May 24, 2024
c4c6f44
migrate: keep old value to better detemin delete action
mimarz May 26, 2024
948bbf1
revert
mimarz May 26, 2024
c98090f
improved print out
mimarz May 26, 2024
5edfdc6
updated printout
mimarz May 26, 2024
dd50c80
miac
Barsnes May 27, 2024
d3ed5f8
updated css var replacer plugin
mimarz May 27, 2024
b8023c5
fixes to plugins
mimarz May 27, 2024
b115a92
updated component tokens migrate
mimarz May 27, 2024
f45fa95
updated
mimarz May 27, 2024
9a77ad8
add showcase page
Barsnes May 27, 2024
dcbddcf
fix typo migrate from before
mimarz May 27, 2024
3df608f
another switch var migrate
mimarz May 27, 2024
2b6997e
remove comment
mimarz May 27, 2024
3c01c52
Merge branch 'main' into feat/tokens-v2
mimarz May 27, 2024
1be4fbd
fixed action-second mapping
mimarz May 27, 2024
f246e24
checkbox tweaks
mimarz May 27, 2024
baf7c4c
updated warning migration
mimarz May 27, 2024
5836ee8
showcase update
Barsnes May 27, 2024
d945ab7
remove test file causing errors
mimarz May 27, 2024
25b6b97
bump cli
mimarz May 27, 2024
cd77afe
delete tests
Barsnes May 28, 2024
6f942aa
check on switch
Barsnes May 28, 2024
157ce76
remove not needed css
Barsnes May 28, 2024
d5b3d6d
checkbox css update
Barsnes May 28, 2024
0928819
switch check css bg var
Barsnes May 28, 2024
ada8539
add images to showcase
Barsnes May 28, 2024
76262c8
missing transition on color
Barsnes May 28, 2024
9ec967a
💃 Migrate beta-to-v1 on CSS
mimarz May 28, 2024
6cea37d
updated react with new css-var prefixes
mimarz May 28, 2024
19d8557
Added 4 themes and changed contrast-first/second to default/subtle
Febakke May 28, 2024
08bbe7f
switch accent color
Barsnes May 28, 2024
2e5216b
update table css
Barsnes May 28, 2024
ca2d41b
radio css
Barsnes May 28, 2024
4b29f29
link css
Barsnes May 28, 2024
0bbc5f4
link docs and inverted deprecation
Barsnes May 28, 2024
53d6b85
Added themes
Febakke May 28, 2024
31343f5
link bg on focus
Barsnes May 28, 2024
b05c3f6
link css again
Barsnes May 28, 2024
1559e19
Update token formatter
mimarz May 28, 2024
4def5f1
fixed missing set in themes
mimarz May 28, 2024
3ac8f5b
update tokens with data-ds-theme support
mimarz May 28, 2024
320fc5b
update storefront tokens
mimarz May 28, 2024
2b9420d
active and focus style
Barsnes May 28, 2024
547f349
update storefront tokens
mimarz May 28, 2024
d7befe6
updated to correct colors.
mrosvik May 28, 2024
d5b776a
fix link tests
Barsnes May 28, 2024
98eb493
added purple
mrosvik May 28, 2024
7936d52
radio hover size
Barsnes May 28, 2024
66a2e8b
fix build error
mimarz May 28, 2024
68ba7e7
update new contrast name use in css and migration
mimarz May 28, 2024
a5bc130
focus on radio
Barsnes May 28, 2024
0736d70
checkbox focus
Barsnes May 28, 2024
da553c9
table focus
Barsnes May 28, 2024
a12de26
tabs focus
Barsnes May 28, 2024
4af86bd
switch focus
Barsnes May 28, 2024
dc8790d
switch pointers
Barsnes May 28, 2024
b3890ba
bump cli
mimarz May 28, 2024
238dfea
update showcase
Barsnes May 28, 2024
1fe736f
alert colors
Barsnes May 28, 2024
840fb88
button danger css
Barsnes May 28, 2024
4fe6c87
build tokens
Barsnes May 28, 2024
7d5fc78
combobox styles
Barsnes May 28, 2024
0827dfe
react-old is private now
mimarz May 28, 2024
591caa6
colors on some components
Barsnes May 28, 2024
65a574a
popover colors
Barsnes May 28, 2024
8e7cdd6
search focus on secondary
Barsnes May 28, 2024
197e5dd
skiplink style
Barsnes May 28, 2024
4e1616f
tag colors
Barsnes May 28, 2024
bd10033
tooltip logic
Barsnes May 28, 2024
288f127
test publish
mimarz May 28, 2024
8840f56
bump rc version
mimarz May 28, 2024
7cadf2b
updated showcase
mimarz May 28, 2024
1a7e9de
added contrast data-attr with placeholder values
mimarz May 28, 2024
6c8242e
updated contrast values
mimarz May 28, 2024
ba92664
bump rc versions
mimarz May 28, 2024
c9982b0
some changes
Barsnes May 29, 2024
cbf23f9
button colors
Barsnes May 29, 2024
1ca4356
more button
Barsnes May 29, 2024
a8aa0cc
update text on `farger.mdx`
Barsnes May 30, 2024
b79fd03
`data-ds-theme` -> `data-ds-color-mode`
Barsnes May 30, 2024
7b7d93a
'@next/next/no-img-element': 'off': 'off'
Barsnes May 30, 2024
28d882c
correct rule
Barsnes May 30, 2024
c27199f
add mode switcher for later use
Barsnes May 30, 2024
49b6b0a
update styleignore
mimarz May 30, 2024
fd1e0a6
arrow for native select
Barsnes May 30, 2024
6abd40a
chore(themepicker): Themepicker (#2023)
Thunear May 30, 2024
8a028a9
remove unused vars themebuilder
Barsnes May 30, 2024
253ac85
temavelger: use own components, set correct tokens and misc
Barsnes May 30, 2024
2f652a5
fix duplicate selector
Barsnes May 30, 2024
055bc43
colors
Barsnes May 30, 2024
348cfea
more colors
Barsnes May 30, 2024
dd2e09a
updated tokens
mimarz May 30, 2024
f992051
bump to rc3
mimarz May 30, 2024
f923753
docs: blog post about v1 (#1967)
mrosvik May 30, 2024
f5c0a9b
docs: update action title
mimarz May 30, 2024
b606e30
docs: fix typo v1rc1
mimarz May 30, 2024
9e94fd4
fix checkbox hover color
Barsnes May 31, 2024
4e119c7
fix button tertiary
Barsnes May 31, 2024
bb3a23a
tabs color
Barsnes May 31, 2024
c43a0a8
switch thumb color
Barsnes May 31, 2024
f1e5784
radio and checkbox colors
Barsnes May 31, 2024
a09050a
Merge branch 'main' into feat/tokens-v2
Barsnes May 31, 2024
9f18c9c
lockfile
Barsnes May 31, 2024
84cb9dd
Removed broken link i warning messages
Thunear May 31, 2024
22ad7cd
Fix unused Link
Thunear May 31, 2024
0c9d031
accordion color
Barsnes May 31, 2024
9a8d4a8
accordion border radius
Barsnes May 31, 2024
6b51a67
no radius on open last item
Barsnes May 31, 2024
7758c47
start combobox css, box css and rewrite komponenter
Barsnes May 31, 2024
3e0f1ee
more colors and borders
Barsnes May 31, 2024
2ea7c57
fix combobox jumping when not in portal
Barsnes May 31, 2024
65e5cc7
card border
Barsnes May 31, 2024
da4d210
combobox no border on focus+hover
Barsnes May 31, 2024
b829486
switch track hover color
Barsnes May 31, 2024
fac36bf
fit-content, some component updates
Barsnes May 31, 2024
7c59bc4
focus on tabs z index
Barsnes May 31, 2024
873ad84
Added focus tokens
Febakke Jun 3, 2024
78aafda
Merge branch 'main' into feat/tokens-v2
mimarz Jun 3, 2024
c3f536d
genereted new focus tokens CSS variable
mimarz Jun 3, 2024
9e9cf4f
updated css to use new focus token CSS variable
mimarz Jun 3, 2024
79bea73
updated theme to use new focus token css variable
mimarz Jun 3, 2024
4aaa25d
correct dark for preview
Barsnes Jun 3, 2024
7c66781
moved focus colors to Style and renamed opacity.disabled -> disabled.…
Febakke Jun 3, 2024
f3b6aed
rename layers
Barsnes Jun 3, 2024
632b00e
card underline
Barsnes Jun 3, 2024
c231010
switch
Barsnes Jun 3, 2024
fdfda04
start deprecating
Barsnes Jun 3, 2024
91567ad
deprecate long name sizes
Barsnes Jun 3, 2024
a8a56d5
theme sizes
Barsnes Jun 3, 2024
8d2a3b7
remove success button
Barsnes Jun 3, 2024
e73f8d6
lock version for react-old
Barsnes Jun 3, 2024
46034d5
fix sizes
Barsnes Jun 3, 2024
aa5e03e
fix tests
Barsnes Jun 3, 2024
f0de641
fix story
Barsnes Jun 3, 2024
a49bbe0
sizes in temavelger
Barsnes Jun 3, 2024
3551ed2
fix temavelger
Barsnes Jun 3, 2024
7ba5771
button colors
Barsnes Jun 3, 2024
640e261
color
Barsnes Jun 3, 2024
064f3cf
combbx emty valu
Barsnes Jun 3, 2024
deff7bb
removed tab-focus and changed the other to highlight
Febakke Jun 4, 2024
ada5fe6
reorder css
Barsnes Jun 4, 2024
f7ae08c
added draft migration for react
mimarz Jun 4, 2024
4fb2aff
upgrade storybook
Barsnes Jun 4, 2024
e24a655
start storefront update
Barsnes Jun 4, 2024
0d18c45
run migration on tokens
Barsnes Jun 4, 2024
4cfb0d3
sizings
Barsnes Jun 4, 2024
78b0412
spinner variant -> color
Barsnes Jun 4, 2024
1518025
remove `OldColor` on tag
Barsnes Jun 4, 2024
6e7664f
remove old colors, delete functions
Barsnes Jun 4, 2024
e9b430b
fix stories
Barsnes Jun 4, 2024
da21dfa
fix dtcg value
mimarz Jun 4, 2024
6321a99
renamed `--ds-opacity-disabled` to `--ds-disabled-opacity` & added `-…
mimarz Jun 4, 2024
002bbcc
A lot of code changes to theme and added Zustand
Thunear Jun 4, 2024
a44bc02
Merge branch 'feat/tokens-v2' of https://github.com/digdir/designsyst…
Thunear Jun 4, 2024
84af953
fix getSize
Barsnes Jun 4, 2024
df8e2d4
fix type errors
Barsnes Jun 4, 2024
c093c39
fix storefront colors
Barsnes Jun 4, 2024
d30dc76
size and color props
Barsnes Jun 4, 2024
c1f4d40
components page
Barsnes Jun 4, 2024
7fcdf8b
make theme buildable
Barsnes Jun 4, 2024
0436357
moved codemods to migrations
mimarz Jun 4, 2024
19592eb
add global colors mapping
Barsnes Jun 4, 2024
0e5bca2
fix typo
Barsnes Jun 4, 2024
985e0c7
migrate global colors on storefront
Barsnes Jun 4, 2024
81e87a1
clean up storefront
Barsnes Jun 4, 2024
ce9b163
moved tokens formats
mimarz Jun 4, 2024
51729f4
actual dark on preview
Barsnes Jun 4, 2024
10462cb
add mode to query params
Barsnes Jun 4, 2024
ff7c031
tooltip in overview
Barsnes Jun 4, 2024
13b41d0
tooltip use inverted scale
Barsnes Jun 4, 2024
10a5f48
fix link colors
Barsnes Jun 4, 2024
8377dfa
potal default false on Tooltip
Barsnes Jun 4, 2024
1dc4030
first version of typography generated classes
mimarz Jun 4, 2024
afdbc7c
Added typography layer
mimarz Jun 4, 2024
8e9da24
fixed indent for typography classes
mimarz Jun 4, 2024
8b5daee
better tokens mode support
mimarz Jun 4, 2024
8fdfdfa
updated dependencies
mimarz Jun 4, 2024
a1e2b8b
make entry files for css tokens
mimarz Jun 4, 2024
e74c0a7
Updated JSDOC on util functions
Thunear Jun 4, 2024
a2d51f5
update theme exports
mimarz Jun 4, 2024
a4d01c6
fix path in SB
mimarz Jun 4, 2024
d7e07e4
bump versions
mimarz Jun 4, 2024
280f6f5
bump version
mimarz Jun 4, 2024
8a55f6a
neutral link
Barsnes Jun 5, 2024
1f72187
fix local packages from worksapce themevelger
Barsnes Jun 5, 2024
5b937e2
shortened name for typography
mimarz Jun 5, 2024
735875d
fix ts
Barsnes Jun 5, 2024
f4ea1a7
add mode switcher to SB
Barsnes Jun 5, 2024
2d3716a
modal colors
Barsnes Jun 5, 2024
5b31f3c
temp fix for sorted entry files
mimarz Jun 5, 2024
539a61c
colors and styles
Barsnes Jun 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ packages/theme/brand/**/*
packages/react-old/**/*
tsc-build/
.storybook

apps/theme/**
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module.exports = {
'import/namespace': ['error', { allowComputed: true }],
'import/no-named-as-default': 'off',
'@next/next/no-html-link-for-pages': ['error', 'apps/storefront/pages/'],
'@next/next/no-img-element': 'off',
'jsx-a11y/no-autofocus': 'off',
'import/order': [
'warn',
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-tokens.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build tokens
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- 'design-tokens/**'
# pull_request:
# branches:
# - main
# paths:
# - 'design-tokens/**'
jobs:
checks:
name: Builds, lints and tests code
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/theme-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_THEME }}
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- 'apps/theme/**'
jobs:
Expand Down
4 changes: 2 additions & 2 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**/dist/**/*.css
packages/theme/brand/**/*.css
packages/theme/**/*.css
packages/css/dist/**/*.css
apps/theme/**
apps/legacy-tokens.css
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prettier.prettierPath": "./node_modules/prettier",
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"cssvar.files": ["packages/theme/brand/digdir/tokens.css"],
"cssvar.files": ["packages/theme/brand/digdir/light.css"],
"[ignore]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
/**
* Do not edit directly
* These files are generated from design tokens defined in Figma using Token Studio
*/

:root {
/** Referenced source tokens */
/** DO NOT OVERRIDE */
--fds-colors-blue-100: #e6eff8;
--fds-colors-blue-200: #b3d0ea;
--fds-colors-blue-700: #0062ba;
Expand Down Expand Up @@ -39,8 +32,6 @@
--fds-colors-grey-400: #bcbfc5;
--fds-colors-red-800: #5a121d;
--fds-colors-purple-700: #7a1265;

/** Tokens */
--fds-brand-alt1-100: #feefef;
--fds-brand-alt1-200: #fddfe0;
--fds-brand-alt1-300: #fbbfc1;
Expand All @@ -49,7 +40,7 @@
--fds-brand-alt1-600: #f45f63;
--fds-brand-alt1-700: #dc5659;
--fds-brand-alt1-800: #c34c4f;
--fds-brand-alt1-900: #B83D41;
--fds-brand-alt1-900: #b83d41;
--fds-brand-alt2-100: #fcf7e9;
--fds-brand-alt2-200: #faeec2;
--fds-brand-alt2-300: #f5dda6;
Expand All @@ -58,7 +49,7 @@
--fds-brand-alt2-600: #e5aa20;
--fds-brand-alt2-700: #ce991d;
--fds-brand-alt2-800: #b7881a;
--fds-brand-alt2-900: #A17717;
--fds-brand-alt2-900: #a17717;
--fds-brand-alt3-100: #e9f5ff;
--fds-brand-alt3-200: #d2eafd;
--fds-brand-alt3-300: #a5d6fb;
Expand All @@ -67,7 +58,7 @@
--fds-brand-alt3-600: #1e98f5;
--fds-brand-alt3-700: #1b88dd;
--fds-brand-alt3-800: #156aac;
--fds-brand-alt3-900: #125A91;
--fds-brand-alt3-900: #125a91;
--fds-semantic-surface-first-light: var(--fds-brand-alt1-200);
--fds-semantic-surface-first-light-hover: var(--fds-brand-alt1-300);
--fds-semantic-surface-first-light-active: var(--fds-brand-alt1-400);
Expand Down Expand Up @@ -308,9 +299,9 @@
--fds-border_width-default: 1px;
--fds-border_width-active: 2px;
--fds-border_width-tab_focus: 2px;
--fds-shadow-xsmall: 0 0 1px 0 rgba(0,0,0,0.16), 0 1px 2px 0 rgba(0,0,0,0.12);
--fds-shadow-small: 0 0 1px 0 rgba(0,0,0,0.15), 0 1px 2px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.1);
--fds-shadow-medium: 0 0 1px 0 rgba(0,0,0,0.14), 0 2px 4px 0 rgba(0,0,0,0.12), 0 4px 8px 0 rgba(0,0,0,0.12);
--fds-shadow-large: 0 0 1px 0 rgba(0,0,0,0.13), 0 3px 5px 0 rgba(0,0,0,0.13), 0 6px 12px 0 rgba(0,0,0,0.14);
--fds-shadow-xlarge: 0 0 1px 0 rgba(0,0,0,0.12), 0 4px 8px 0 rgba(0,0,0,0.16), 0 12px 24px 0 rgba(0,0,0,0.16);
--fds-shadow-xsmall: 0 0 1px 0 rgba(0, 0, 0, 0.16), 0 1px 2px 0 rgba(0, 0, 0, 0.12);
--fds-shadow-small: 0 0 1px 0 rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
--fds-shadow-medium: 0 0 1px 0 rgba(0, 0, 0, 0.14), 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 4px 8px 0 rgba(0, 0, 0, 0.12);
--fds-shadow-large: 0 0 1px 0 rgba(0, 0, 0, 0.13), 0 3px 5px 0 rgba(0, 0, 0, 0.13), 0 6px 12px 0 rgba(0, 0, 0, 0.14);
--fds-shadow-xlarge: 0 0 1px 0 rgba(0, 0, 0, 0.12), 0 4px 8px 0 rgba(0, 0, 0, 0.16), 0 12px 24px 0 rgba(0, 0, 0, 0.16);
}
158 changes: 0 additions & 158 deletions apps/storefront/components/Banner/Banner.module.css

This file was deleted.

40 changes: 0 additions & 40 deletions apps/storefront/components/Banner/Banner.tsx

This file was deleted.

1 change: 0 additions & 1 deletion apps/storefront/components/Banner/index.ts

This file was deleted.

8 changes: 4 additions & 4 deletions apps/storefront/components/Blog/Card/BlogCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
flex-wrap: wrap;
flex-direction: column;
justify-content: center;
padding: var(--fds-spacing-8) var(--fds-spacing-10);
padding: var(--ds-spacing-8) var(--ds-spacing-10);
}

.card[data-featured='true'] .heading {
Expand All @@ -38,8 +38,8 @@

.meta {
display: flex;
gap: var(--fds-spacing-3);
color: var(--fds-semantic-text-neutral-subtle);
gap: var(--ds-spacing-3);
color: var(--ds-color-neutral-text-subtle);
font-size: 14px !important;
}

Expand All @@ -48,6 +48,6 @@
height: 7px;
transform: rotate(45deg);
border-radius: 1px;
background-color: var(--fds-brand-alt1-600);
background-color: var(--ds-color-brand1-6);
margin: auto;
}
10 changes: 5 additions & 5 deletions apps/storefront/components/Blog/Card/BlogCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type BlogCardProps = {
href: string;
featured?: boolean;
tagText?: string;
tagColor?: 'first' | 'second' | 'third';
tagColor?: 'brand1' | 'brand2' | 'brand3';
level?: 2 | 3;
} & Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>;

Expand Down Expand Up @@ -54,26 +54,26 @@ export const BlogCard = ({
<Tag
className={classes.tag}
color={tagColor}
size='small'
size='sm'
>
{tagText}
</Tag>
)}
<Heading
level={level}
size={featured ? 'large' : 'small'}
size={featured ? 'lg' : 'sm'}
>
{title}
</Heading>
</Card.Header>
<Card.Content>
<Paragraph size={featured ? 'large' : 'small'}>{desc}</Paragraph>
<Paragraph size={featured ? 'lg' : 'sm'}>{desc}</Paragraph>
</Card.Content>
{author ||
(date && (
<Card.Footer className={classes.footer}>
<Paragraph
size={featured ? 'medium' : 'xsmall'}
size={featured ? 'md' : 'xs'}
className={classes.meta}
>
<span>{date}</span>
Expand Down
Loading
Loading