AwsmBuff
AwsmBuff
DDeno
Created by AwsmBuff on 3/7/2024 in #help
TailwindCSS: Class-Strings build with variables
But there hasn't been any work on Twind for 2 years now. Comparing it to newer frameworks it lacks a lot of features. 🤔
12 replies
DDeno
Created by AwsmBuff on 3/7/2024 in #help
TailwindCSS: Class-Strings build with variables
I thought safelisting is disapproved and bloats the css-file? And I would still need to name every color and grading I wanted in a different file. Seeing that TailwindCSS includes the "container" class when mentioned even though it is never used also seems bothersome. Maybe I will change to a different CSS framework.
12 replies
DDeno
Created by AwsmBuff on 3/7/2024 in #help
TailwindCSS: Class-Strings build with variables
I mean, yea, naming every class explicitly works but was the thing I tried to avoid since it would need me to write down 40 classes in an object. Thank you anyways for the examples. I guess I have to go with that approach then. :/
12 replies
DDeno
Created by AwsmBuff on 3/7/2024 in #help
TailwindCSS: Class-Strings build with variables
https://stackoverflow.com/a/77628664 Solutions like this are not really efficient for me since I would need to specifically type 40 classes (4 per button and 10 buttons in total) in my example.
12 replies
DDeno
Created by AwsmBuff on 7/18/2023 in #help
Signal Arrays do not work with HTML-Elements?
Cool, thanks again for the suggestions! And @lino-levan for the first aid! Hope this will help others in the future as well.
17 replies
DDeno
Created by AwsmBuff on 7/18/2023 in #help
Signal Arrays do not work with HTML-Elements?
Thank you very much for the detailed explanation. Would you recommend to do an array of signals instead a signal containing an array then too or is there a better way?
17 replies
DDeno
Created by AwsmBuff on 7/18/2023 in #help
Signal Arrays do not work with HTML-Elements?
Doesn't sound familiar to me 😅
17 replies
DDeno
Created by AwsmBuff on 7/18/2023 in #help
Signal Arrays do not work with HTML-Elements?
Reassign like right after negating the value? (Just asking because I tried that and it did not work.)
17 replies
DDeno
Created by AwsmBuff on 7/18/2023 in #help
Signal Arrays do not work with HTML-Elements?
Yea, that is what I am now trying to do but it gets ugly in my case and I wondered if an array inside of a signal would work too.
17 replies
DDeno
Created by AwsmBuff on 7/18/2023 in #help
Signal Arrays do not work with HTML-Elements?
At first: Thank you for your help! What do you mean by that? I thought I am setting the signal value with activated.value[0] = !activated.value[0];. At least that is what I am doing in the first example and there it works.
17 replies
DDeno
Created by AwsmBuff on 7/18/2023 in #help
Signal Arrays do not work with HTML-Elements?
This is just an example but in my project: Being able to use an array at that point instead of hardcoding all the signals would help me a lot. Am I using it wrong?
17 replies
DDeno
Created by AwsmBuff on 3/16/2023 in #help
Fresh: How to make Styles global with twindv1?
It took me a while but I finally found a Discord message showing an example how to use preflight now. You have to give it a css-js-object. Here is an example:
export default {
...defineConfig({
presets: [
presetAutoPrefix(),
presetTailwind(),
],
preflight: {
"h1": {
"@apply": "text-4xl font-extrabold tracking-tight dark:text-white",
},
"h2": { "@apply": "my-2 text-3xl font-bold dark:text-white" },
},
}),
selfURL: import.meta.url,
} as Options;
export default {
...defineConfig({
presets: [
presetAutoPrefix(),
presetTailwind(),
],
preflight: {
"h1": {
"@apply": "text-4xl font-extrabold tracking-tight dark:text-white",
},
"h2": { "@apply": "my-2 text-3xl font-bold dark:text-white" },
},
}),
selfURL: import.meta.url,
} as Options;
I hope it helps!
2 replies
DDeno
Created by iuioiua on 2/7/2023 in #help
Supabase Auth UI in Fresh
Thank you very much!
10 replies
DDeno
Created by iuioiua on 2/7/2023 in #help
Supabase Auth UI in Fresh
Is your project public? I am also trying to get authentication to work with Fresh and Supabase but I am not making good progress. :/
10 replies