Seduxtion
Seduxtion
NNuxt
Created by Seduxtion on 5/1/2024 in #❓・help
nuxt layers, using tailwind "addCompomnent"
Hey everyone, so im working in a nuxt monorepo with layers following the same structure as alexander licher in this video: https://www.youtube.com/watch?v=fr5yo3aVkfA and this is so far working super great! however i managed to meet 1 problem, we´re using tailwind for styling and together with our design team we have made a design system that´s meant to be super easy for us to adjust. However we have a problem right now with our fonts. using the tailwind plugin "addComponents" we´re adding styling like this
'.font-medium-article': {
fontSize: '1.25rem',
letterSpacing: 'normal',
lineHeight: '24px',
fontWeight: '700',
textTransform: 'unset',
fontFamily: theme('fontFamily.heading'),
'@screen lg': {
fontSize: '1.375rem',
},
},
'.font-medium-article': {
fontSize: '1.25rem',
letterSpacing: 'normal',
lineHeight: '24px',
fontWeight: '700',
textTransform: 'unset',
fontFamily: theme('fontFamily.heading'),
'@screen lg': {
fontSize: '1.375rem',
},
},
and then we´re adjusting thise in each brand ( evert folder have their own tailwind.config file and assets/tailwind.css file. right now we have 3 folders (base, ill, wom) and each folder have their config file, and all basic color and stuff like that in the tailwind seems to work, however it seems like even our wom and ill is getting the styling from the base folder regarding that addComponent styling. can anyone answer me or guide me in the right direction here?
1 replies
NNuxt
Created by Seduxtion on 4/11/2024 in #❓・help
auto import types
Hey im trying to figure out, if its possible to make a typescript folder, and have my types safed on place and auto import them for all my components? and if so how would that work and how would i use the type for each file?
3 replies
NNuxt
Created by Seduxtion on 12/27/2022 in #❓・help
storybook&nuxt 3
Hello is there anyone that managed to get a working nuxt 3 project running with storybook - preferably also with the auto component loader?
2 replies