Skip to content

Commit f28832a

Browse files
committed
feat(ffe-icons): Endre ikonstørrelse på lg og xl, (lg 40 -> 32, xl 48 -> 40)
Breaking change: Ikon med størrelse XL er nå blitt litt mindre (48px til 40px) og lg har blitt mindre (40px -> 32px)
1 parent f474381 commit f28832a

File tree

2 files changed

+74
-2
lines changed

2 files changed

+74
-2
lines changed

examples/sbanky/tailwind.config.js

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/** @type {import('tailwindcss').Config} */
2+
const colors = require('@sb1/ffe-core/lib/colors');
3+
const { greyCharcoalDarkmode } = require('@sb1/ffe-core/lib/colors-deprecated');
4+
const spacing = require('@sb1/ffe-core/lib/spacing');
5+
const breakpoints = require('@sb1/ffe-core/lib/breakpoints');
6+
7+
module.exports = {
8+
content: ['./src/**/*.{tsx,ts}'],
9+
darkMode: [
10+
'variant',
11+
[
12+
'@media (prefers-color-scheme: dark) { body.regard-color-scheme-preference & }',
13+
],
14+
],
15+
theme: {
16+
colors: {
17+
...colors,
18+
inherit: 'inherit',
19+
transparent: 'transparent',
20+
fargeBeksvart: greyCharcoalDarkmode,
21+
},
22+
screens: {
23+
sm: breakpoints.breakpointSm,
24+
md: breakpoints.breakpointMd,
25+
lg: breakpoints.breakpointLg,
26+
xl: breakpoints.breakpointXl,
27+
},
28+
spacing: {
29+
0: 0,
30+
0.5: spacing.spacing2xs,
31+
1: spacing.spacing,
32+
2: spacing.spacingSm,
33+
3: spacing.spacingMd,
34+
4: spacing.spacingLg,
35+
5: spacing.spacingXl,
36+
6: spacing.spacing2xl,
37+
8: spacing.spacing3xl,
38+
10: spacing.spacing4xl,
39+
20: spacing.spacing5xl,
40+
'2xs': spacing.spacing2xs,
41+
xs: spacing.spacingXs,
42+
sm: spacing.spacingSm,
43+
md: spacing.spacingMd,
44+
lg: spacing.spacingLg,
45+
xl: spacing.spacingXl,
46+
'2xl': spacing.spacing2xl,
47+
'3xl': spacing.spacing3xl,
48+
'4xl': spacing.spacing4xl,
49+
'5xl': spacing.spacing5xl,
50+
'1/2': '50%',
51+
},
52+
animation: {
53+
slide: 'slide 1.8s infinite',
54+
},
55+
keyframes: {
56+
slide: {
57+
'0%': { transform: 'translateX(-100%)' },
58+
'100%': { transform: 'translateX(100%)' },
59+
},
60+
},
61+
extend: {
62+
borderRadius: {
63+
DEFAULT: '8px',
64+
lg: '32px',
65+
},
66+
},
67+
},
68+
plugins: [],
69+
corePlugins: {
70+
preflight: false,
71+
},
72+
};

packages/ffe-icons/bin/build.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const {
1313
const sizes = [
1414
{ name: 'sm', opsz: 20 },
1515
{ name: 'md', opsz: 24 },
16-
{ name: 'lg', opsz: 40 },
17-
{ name: 'xl', opsz: 48 },
16+
{ name: 'lg', opsz: 32 },
17+
{ name: 'xl', opsz: 40 },
1818
];
1919
const fill = [0, 1];
2020

0 commit comments

Comments
 (0)