Set Default Color: Assign a color value to 'DEFAULT' (e.g., '#4A5568') to set it as the default font color. Save Changes: Save the 'tailwind.config.js' file after making the changes. Use Default Color: Use text elements in your HTML without specifying a color class to apply the ...
14 changes: 14 additions & 0 deletions 14 packages/tailwindcss/src/functions.test.ts Original file line numberDiff line numberDiff line change @@ -285,6 +285,20 @@ describe('theme function', () => { }" `) }) test('theme(fontFamily.sans)', async () => { expect( await compile...
@tailwind utilities; /* montserrat-regular - latin */ @font-face { font-family: 'Montserrat'; font-style: normal; font-weight: normal; src: url('../../static/fonts/montserrat-v25-latin-regular.woff2') format('woff2'), url('../../static/fonts/montserrat-v25-latin-regular.woff')...
a blog post</blog-title>component:TTag,props:{tag:'h2',classes:'font-semibold text-xl leading-6',}},'t-link':{// Used like <t-link href="">Open site</t-link>component:TTag,props:{tag:'a',classes:'text-blue-500 underline hover:text-blue-600',}}}Vue.use(VueTailwind,settings...
Some frameworks, like Bootstrap and Tailwind, touch global styles to establish a sort of baseline -- we call that normalizing. One such styles is the following bit, which makes dimensions (width and height) behave in a specific way:
例如,可以使用background-color属性来更改背景颜色,font-size属性来更改字体大小等。 将自定义的CSS文件引入到项目中。可以在项目的入口文件(如index.js或App.js)中使用import语句引入该文件。 确保自定义的CSS文件在antd的样式文件之后引入,以确保覆盖默认样式。 以下是一个示例的custom.css文件,用于更改类default的...
require('@tailwindcss/forms') ] } So now it is possible to use the fonts in the classes using like this: using the Font Aclonica class="font-aclonica" or using the Font Lobster class="font-lobster" And the secret for don’t have any error complaints on the console was ...
2 changes: 1 addition & 1 deletion 2 tailwind.config.js Original file line numberDiff line numberDiff line change @@ -22,7 +22,7 @@ module.exports = { 14: '3.5rem', }, fontFamily: { sans: ['var(--font-inter)', ...fontFamily.sans], sans: ['var(--font-space-grotesk...
layouts _default baseof.html home.html section.html single.html misc partials shortcodes 404.html robots.txt lighthouse static .gitignore CHANGELOG.md LICENSE README.md go.mod hugo.yaml lighthouse-config.json package-lock.json package.json prettier.config.js tailwind.config.js theme....
tailwindcss tapable tar temp-dir tempy terminal-link terser-webpack-plugin terser test-exclude text-table throat thunky timsort tiny-invariant tiny-warning tmpl to-fast-properties to-regex-range toidentifier tough-cookie tr46 trim-newlines true-case-path tryer tsconfig-paths tslib...