Comments (3)
FYI, whoever comes along, I just copy pasted your code and now it works fine.
However, that's not the config file structure that latest tailwind now generates. So, I have no understanding if this is an issue or not. However, I would expect you would want places flagged where your documentation is out of sync with the code that's live.
from docs.
Thanks for raising this! Looks like this is using the old CommonJS format for the config. I'll make sure to update this today.
Looks like you're missing the key in fontFamily
in your config. fontFamily
should have the sans
key, mapping to the array.
fontFamily: {
["InterVariable", "Inter", ...defaultTheme.fontFamily.sans],
}
Once I've updated the docs, the new version (tailwind.config.mjs
) should end up looking something like this
import defaultTheme from 'tailwindcss/defaultTheme'
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [],
}
from docs.
Thanks @TheOtterlord
from docs.
Related Issues (20)
- Missing type safety when passing frontmatter to layout of content collection HOT 3
- State the return type for images when using `Astro.glob()`
- Got failed deploy Astro with Github pages (action) HOT 3
- Subpath imports HOT 4
- Weird font rendering on Firefox HOT 1
- There's a misunderstanding at en/guides/prefetch HOT 1
- 📘 DOC: Installation instructions for lsp-mode / emacs HOT 2
- Cloudflare Assets headers info HOT 1
- Improve alpine documentation on the use of the entrypoint or script HOT 4
- Improve documentation around `astro sync` HOT 6
- gitaction error,cant change es2022 version HOT 3
- Mention RSS Autodiscovery in RSS Guide HOT 2
- Sidebar reorganisation proposal HOT 9
- Add Zed (code editor) HOT 5
- Add utf8 to the language version of double-byte characters HOT 2
- ⚠️ Issue - On demand rendering for protected page HOT 6
- Remove Tigris from the Astro Integrations HOT 2
- Entering pages through search includes unnecessary anchor
- Out of order streaming HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.