File tree 6 files changed +53
-6
lines changed
packages/internarbeidsflate-decorator-v3
6 files changed +53
-6
lines changed Original file line number Diff line number Diff line change 33
33
"concurrently" : " ^9.0.0" ,
34
34
"msw" : " ^2.2.13" ,
35
35
"postcss" : " ^8.4.38" ,
36
+ "postcss-import" : " ^16.1.0" ,
36
37
"react" : " ^18.2.0" ,
37
38
"react-dom" : " ^18.2.0" ,
38
39
"tailwindcss" : " ^3.4.3" ,
Original file line number Diff line number Diff line change 1
1
module . exports = ( ) => ( {
2
- plugins : [ require ( 'tailwindcss' ) ( ) , require ( 'autoprefixer' ) ( ) ] ,
2
+ plugins : [
3
+ require ( 'postcss-import' ) ( ) ,
4
+ require ( 'tailwindcss/nesting' ) ( ) ,
5
+ require ( 'tailwindcss' ) ( ) ,
6
+ require ( 'autoprefixer' ) ( ) ,
7
+ ] ,
3
8
} ) ;
Original file line number Diff line number Diff line change 1
- @import 'tailwindcss/base' ;
2
- @import '@navikt/ds-css' ;
3
- @import 'tailwindcss/components' ;
4
- @import 'tailwindcss/utilities' ;
1
+ @layer tw-base, aksel-dr, tw-dr;
2
+ @import 'tailwindcss/base' layer(tw- base-dr);
3
+ @import '@navikt/ds-css' layer(aksel- dr);
4
+ @import 'tailwindcss/components' layer(tw- dr);
5
+ @import 'tailwindcss/utilities' layer(tw- dr);
5
6
6
7
[data-theme = 'internarbeidsflatedecorator-theme' ] {
7
8
--ac-select-bg : var (--a-gray-900 );
22
23
--ac-button-tertiary-neutral-text : var (--a-gray-900 );
23
24
--a-shadow-focus-inverted : 0 0 0 3px var (--a-orange-500 );
24
25
}
26
+
27
+ .dekorator {
28
+ @layer tw-base {
29
+ h1 ,
30
+ h2 ,
31
+ h3 ,
32
+ h4 ,
33
+ h5 ,
34
+ h6 {
35
+ font-size : inherit;
36
+ font-weight : inherit;
37
+ }
38
+
39
+ ol ,
40
+ ul {
41
+ list-style : none;
42
+ margin : 0 ;
43
+ padding : 0 ;
44
+ }
45
+
46
+ * ,
47
+ ::before ,
48
+ ::after {
49
+ border-width : 0 ;
50
+ border-style : solid;
51
+ border-color : theme ('borderColor.DEFAULT' , currentColor);
52
+ }
53
+
54
+ ::before ,
55
+ ::after {
56
+ --tw-content : '' ;
57
+ }
58
+ }
59
+ }
Original file line number Diff line number Diff line change @@ -55,7 +55,10 @@ const Wrapper: React.FC = () => {
55
55
< div className = "dr-w-full dr-top-0" >
56
56
< Decorator
57
57
appName = "Test app"
58
- markup = { { etterSokefelt : '<button>Min knapp</button>' } }
58
+ markup = { {
59
+ etterSokefelt :
60
+ '<button class="dr-font-black dr-bg-none dr-border-none">Min knapp</button>' ,
61
+ } }
59
62
enableHotkeys
60
63
showEnheter = { true }
61
64
showSearchArea = { true }
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ export default {
21
21
} ,
22
22
} ,
23
23
} ,
24
+ corePlugins : {
25
+ preflight : false ,
26
+ } ,
24
27
presets : [ dsTailwind ] ,
25
28
plugins : [ ] ,
26
29
} ;
You can’t perform that action at this time.
0 commit comments