skip to Main Content

Css – How to override imported styling with tailwind

I have a react project where I use tailwind. I have an index.css file that I am importing at the root of my project. The index.css file looks like this: @import "tailwindcss/base"; @import "@navikt/ds-css"; @import "@navikt/ui-common/styles/index.css"; @import "tailwindcss/components"; @import "tailwindcss/utilities";…

VIEW QUESTION

Html – Flexbox child does not have declared padding

I just can figure out why the right button has not enough padding. <div class="col-span-2 flex gap-0.5 items-center justify-between"> <p>Wie möchten Sie ihre Antwort erhalten?</p> <div class="grid grid-cols-2 gap-1.5"> <div class="whitespace-nowrap rounded bg-black px-4 py-3 text-center leading-none text-white" > E-Mail…

VIEW QUESTION

Config Tailwind in react native not working

i am new with react native and typescript. in this project i want to use the tailwind css and follow instruction at nativewind to config tailwind.config.js like this /** @type {import('tailwindcss').Config} */ module.exports = { content: [ "./App.tsx", "./src/**/*.{js,jsx,ts,tsx}", ],…

VIEW QUESTION
Back To Top
Search