Skip to content

Commit d36bbf4

Browse files
mrosvikBarsnes
andauthored
docs: rearrange-fundamental-pages (#4282)
Co-authored-by: Tobias Barsnes <tobias.barsnes@digdir.no>
1 parent d1b95fa commit d36bbf4

27 files changed

Lines changed: 163 additions & 105 deletions

File tree

apps/storybook/stories/Overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ som kan brukes til å videreutvikle og lage mer avanserte og sammensatte kompone
7070
>
7171
<h2 className='sb-unstyled'>
7272
<a
73-
href='https://www.designsystemet.no/no/fundamentals/design-tokens/design-tokens'
73+
href='https://www.designsystemet.no/no/fundamentals/design-elements/design-tokens'
7474
target='_blank'
7575
rel='noreferrer'
7676
className='sb-unstyled'

apps/www/app/_components/fundamentals-card/fundamentals-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const FundamentalsCard = ({
2020
color = 'red',
2121
icon,
2222
description,
23-
url = '/fundamentals/design-tokens',
23+
url = '/fundamentals/design-elements',
2424
level = 3,
2525
}: FundamentalsCardProps) => {
2626
const iconColor =

apps/www/app/_utils/redirects.server.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,56 @@ const redirects = [
3535
from: '/grunnleggende',
3636
to: '/no/fundamentals',
3737
},
38+
{
39+
from: '/no/fundamentals/introduction/values',
40+
to: '/no/fundamentals/introduction/about-the-design-system#verdier',
41+
},
42+
{
43+
from: '/no/fundamentals/design-tokens/variables',
44+
to: '/no/fundamentals/design-elements/variables',
45+
},
46+
{
47+
from: '/en/fundamentals/design-tokens/variables',
48+
to: '/en/fundamentals/design-elements/variables',
49+
},
50+
{
51+
from: '/no/fundamentals/design-tokens/colors',
52+
to: '/no/fundamentals/design-elements/colors',
53+
},
54+
{
55+
from: '/en/fundamentals/design-tokens/colors',
56+
to: '/en/fundamentals/design-elements/colors',
57+
},
58+
{
59+
from: '/no/fundamentals/design-tokens/sizes-and-spacing',
60+
to: '/no/fundamentals/design-elements/sizes-and-spacing',
61+
},
62+
{
63+
from: '/en/fundamentals/design-tokens/sizes-and-spacing',
64+
to: '/en/fundamentals/design-elements/sizes-and-spacing',
65+
},
66+
{
67+
from: '/no/fundamentals/design-tokens/typography',
68+
to: '/no/fundamentals/design-elements/typography',
69+
},
70+
{
71+
from: '/en/fundamentals/design-tokens/typography',
72+
to: '/en/fundamentals/design-elements/typography',
73+
},
74+
{
75+
from: '/no/fundamentals/design-tokens/shadows',
76+
to: '/no/fundamentals/design-elements/shadows',
77+
},
78+
{
79+
from: '/en/fundamentals/design-tokens/shadows',
80+
to: '/en/fundamentals/design-elements/shadows',
81+
},
82+
{
83+
from: '/no/fundamentals/resources/icons/',
84+
to: '/no/fundamentals/design-elements/icons',
85+
},
86+
{
87+
from: '/en/fundamentals/resources/icons/',
88+
to: '/en/fundamentals/design-elements/icons',
89+
},
3890
];

apps/www/app/content/blog/en/fluid-typography.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The text sizes increase gradually from a viewport width of 320px until it reache
3434

3535
<br />
3636

37-
Based on [the disadvantages this caused](https://github.com/digdir/designsystemet/issues/1444), we chose to go with a [static typography scale](/en/fundamentals/design-tokens/typography#text-size) as the standard for Designsystemet.
37+
Based on [the disadvantages this caused](https://github.com/digdir/designsystemet/issues/1444), we chose to go with a [static typography scale](/en/fundamentals/design-elements/typography#text-size) as the standard for Designsystemet.
3838

3939
## Do you need dynamic typography?
4040

apps/www/app/content/blog/no/fluid-typography.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Tekststørrelsene øker gradvis fra viewport-bredde 320px helt til det treffer m
3434

3535
<br />
3636

37-
Basert på [ulempene dette medførte](https://github.com/digdir/designsystemet/issues/1444), valgte vi å gå for en [statisk typografi-skala](/no/fundamentals/design-tokens/typography#tekststørrelse) som standard for designsystemet.
37+
Basert på [ulempene dette medførte](https://github.com/digdir/designsystemet/issues/1444), valgte vi å gå for en [statisk typografi-skala](/no/fundamentals/design-elements/typography#tekststørrelse) som standard for designsystemet.
3838

3939
## Har du behov for dynamisk typografi?
4040

apps/www/app/content/fundamentals/en/code/get-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ order: 10
1212

1313
Looking to get started with Designsystemet as a developer? Our [GitHub README](https://github.com/digdir/designsystemet#table-of-contents) contains everything you need — including installation, usage examples, and contribution guidelines.
1414

15-
To understand how colors, spacing, and typography are handled in code, we also recommend reading about [design tokens](/en/fundamentals/design-tokens/variables).
15+
To understand how colors, spacing, and typography are handled in code, we also recommend reading about [design tokens](/en/fundamentals/design-elements/variables).
1616

apps/www/app/content/fundamentals/en/design-tokens/colors.mdx renamed to apps/www/app/content/fundamentals/en/design-elements/colors.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Colors
33
sidebar_title: Colors
44
description: How the colours are structured and how you use them.
55
date: 2024-05-30
6-
category: Design Tokens
6+
category: Design Elements
77
color: red
88
icon: PaletteIcon
99
published: true

apps/www/app/content/fundamentals/en/resources/icons.mdx renamed to apps/www/app/content/fundamentals/en/design-elements/icons.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ title: Icons
33
sidebar_title: Icons
44
description: Designsystemet lets you choose the icon pack that suits your needs.
55
date: 2025-09-30
6-
category: Resources
6+
category: Design Elements
77
color: yellow
88
icon: ImageIcon
99
published: true
10-
order: 10
10+
order: 100
1111
---
1212

1313
## Choose your own icon set

apps/www/app/content/fundamentals/en/design-tokens/shadows.mdx renamed to apps/www/app/content/fundamentals/en/design-elements/shadows.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Shadows
33
sidebar_title: Shadows
44
description: How shadows are defined and used in Designsystemet.
55
date: 2023-04-10
6-
category: Design Tokens
6+
category: Design Elements
77
color: red
88
icon: MoonIcon
99
published: true

apps/www/app/content/fundamentals/en/design-tokens/sizes-and-spacing.mdx renamed to apps/www/app/content/fundamentals/en/design-elements/sizes-and-spacing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Sizes and Spacing
33
sidebar_title: Sizes and Spacing
44
description: How sizes and spacing are defined and used in Designsystemet.
55
date: 2025-01-03
6-
category: Design Tokens
6+
category: Design Elements
77
color: red
88
icon: RulerIcon
99
published: true

0 commit comments

Comments
 (0)