Comments (6)
You can combine them, it's just CSS:
'h1, h2, h3': { color: 'purple' }
from tailwindcss-typography.
You need to setup one by one, as that is the way they are configured: https://github.com/tailwindlabs/tailwindcss-typography/blob/master/src/styles.js#L68
from tailwindcss-typography.
@adamwathan, thanks. Does that mean, I can add custom styles like
For example:
'div.ql-video': {
width: '100%',
height: '400px'
}
Just trying to figure out how to set styles for a video on a blog post that uses quill js. Quill JS adds its own css classes to the elements, so a bit confused about how to use it. I am hoping it makes sense
from tailwindcss-typography.
@adamwathan, thanks. Does that mean, I can add custom styles like
For example:
'div.ql-video': { width: '100%', height: '400px' }
Just trying to figure out how to set styles for a video on a blog post that uses quill js. Quill JS adds its own css classes to the elements, so a bit confused about how to use it. I am hoping it makes sense
did you try it first?
from tailwindcss-typography.
@adamwathan, thanks. Does that mean, I can add custom styles like
For example:
'div.ql-video': { width: '100%', height: '400px' }
Just trying to figure out how to set styles for a video on a blog post that uses quill js. Quill JS adds its own css classes to the elements, so a bit confused about how to use it. I am hoping it makes sense
Yep, this works. It will resolve to .prose div.ql-video
.
from tailwindcss-typography.
You need to setup one by one, as that is the way they are configured: https://github.com/tailwindlabs/tailwindcss-typography/blob/master/src/styles.js#L68
Thank you that worked, tho I was expecting
DEFAULT: {
css: {
headings: {
fontWeight: "unset",
},
to just work as prose-headings:{utility}
exists, but it's not a big deal
from tailwindcss-typography.
Related Issues (20)
- Generated classes do not respect base tailwind.config "important" setting HOT 2
- `not-prose` does not reset `prose-lg` HOT 2
- Bottom margin is not reset for last child when redefined in lg prose HOT 2
- Wrong order of custom utilities and prose with variant HOT 3
- 0.5.10 causes '[class~=not-prose] *)):before' is not a valid selector HOT 5
- Peer dependency invalid version requirement HOT 1
- `prose-code` targets both inline and block code HOT 5
- Bad DX: [object Object] appearing in CSS when customizing typography
- Unable to change video size using prose-video:{utility} HOT 3
- Does not work on wechat webview HOT 1
- Numbered lists are being cut off HOT 1
- Markdown Rendered Graphs Overflows the Screen HOT 1
- Type error in the config: Binding element 'theme' implicitly has an 'any' type. HOT 1
- Links don't have a default hover state HOT 3
- Prose not formatting markdown tables correctly HOT 1
- The rendered image height is incorrect. HOT 1
- headings modifier does not work HOT 5
- Prose class adds inner border to specific font on Chrome HOT 2
- Different rendering on Firefox HOT 3
- @apply prose is failing the first- and last-child selectors HOT 1
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 tailwindcss-typography.