A lightweight CSS stylesheet for rendering Quill.js output. Designed to ensure that Quill's generated HTML content is styled consistently, while working seamlessly with global frameworks like Tailwind CSS and other default styles.
rem
and em
units to ensure scalability and responsiveness.Here’s an updated section that includes additional installation methods:
Install the package via NPM:
npm install default-render
Install the package using Yarn:
yarn add default-render
Install the package using PNPM:
pnpm add default-render
To apply the default styles globally, simply import the style.css
file:
import 'default-render/style.css';
If you are using a custom CSS or SCSS file, include the package:
@import 'default-render/style.css';
<link>
in HTML:After installing the package via NPM, link it directly in your HTML:
<link rel="stylesheet" href="./node_modules/default-render/style.css">
To use Default Render in a React project, simply import the style.css
file in your main JavaScript/TypeScript file:
import 'default-render/style.css';
function App() {
return (
<div className="App">
<h1>Quill.js Output with Default Render</h1>
<div id="editor"></div>
<div id="output" className="default-css">
{/* Quill.js content will be styled here */}
</div>
</div>
);
}
export default App;
In a Vue.js project, include the Default Render stylesheet globally by importing it in your main.js
or main.ts
:
import 'default-render/style.css';
new Vue({
render: h => h(App),
}).$mount('#app');
In your Vue component, you can then use the Quill.js output container:
<template>
<div id="output" class="default-css">
<!-- Quill.js content will be styled here -->
</div>
</template>
<script>
export default {
mounted() {
// Quill.js setup logic goes here
},
};
</script>
In an Angular project, import Default Render in your angular.json
file to apply globally:
"styles": [
"src/styles.css",
"node_modules/default-render/style.css"
]
Then, in your component template, use the Quill.js output container:
<div id="output" class="default-css">
<!-- Quill.js content will be styled here -->
</div>
Here’s an example of how Default Render will work with Quill.js to style its output and ensure it integrates well with Tailwind CSS or other global styles.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quill.js with Default Render</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="./node_modules/default-render/style.css"> <!-- Import default styles -->
</head>
<body>
<div class="container mx-auto p-4">
<h1 class="text-3xl font-bold mb-4">Quill.js Output with Default Render</h1>
<div id="editor"></div>
<div id="output" class="mt-4 default-css">
<!-- Quill.js will render here, and its output will be styled by default-render -->
</div>
</div>
</body>
</html>
In the above example:
#output
div, ensuring consistency.rem
and em
units for typography, ensuring good responsiveness across devices.We welcome contributions! If you find a bug or have a feature request, please open an issue or submit a pull request.
This project is licensed under the ISC License. See the LICENSE file for more details.
Quill.js Styles
, Quill.js Output
, CSS Framework
, Responsive CSS
, Tailwind CSS
, Default Styles
, Global Stylesheet
, rem and em CSS
, Lightweight CSS Package
.
Integrate Default Render with Quill.js and your favorite CSS framework to ensure your content is styled properly across any platform.