Skip to content

Commit

Permalink
Merge branch 'next' into docs/getting-started-for-designers
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz authored Jun 5, 2024
2 parents 350aa27 + 262edbf commit a4be5d9
Show file tree
Hide file tree
Showing 393 changed files with 130,329 additions and 40,867 deletions.
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/**
9 changes: 1 addition & 8 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ module.exports = {
files: ['apps/storefront/**/*', 'apps/dev/**/*', 'apps/theme/**/*'],
extends: ['plugin:@next/next/recommended'],
},
{
// MDX files
files: ['**/*.md?(x)'],
extends: ['plugin:mdx/recommended'],
settings: {
'mdx/code-blocks': false,
},
},
],
rules: {
'arrow-body-style': 'off',
Expand All @@ -67,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
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.0.2.cjs

This file was deleted.

894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.2.2.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ nodeLinker: node-modules

npmAuthToken: "${NODE_AUTH_TOKEN:-}"

yarnPath: .yarn/releases/yarn-4.0.2.cjs
yarnPath: .yarn/releases/yarn-4.2.2.cjs
25 changes: 8 additions & 17 deletions packages/theme/brand/digdir/tokens.css → apps/legacy-tokens.css
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;
}
Loading

0 comments on commit a4be5d9

Please sign in to comment.