This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Installation
Michio edited this page Dec 6, 2023
·
2 revisions
- react 17.x | 18.x
- node >= 16.x
To install the package, please run:
npm install @deriv/quill-design@latest
add this to your main or global stylesheet, so you get all the needed classes for the components.
@import '@deriv/quill-design/dist/quill-design.css';
if you want to use the components, this is it, go ahead, you're done. if you wanna use the quill-tokens
as well, keep reading.
If you just want to use the components, you don't have to setup the configuration and tailwind.
based on your project and build tools please follow the instructions on the tailwind official documentation to install it on your project.
when you're done with tailwind installation, please add:
- update your
tailwind.config.js
to use the quill customised tailwind config aspreset
, like so:
/** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
extend: {
// your theme stuff
}
},
presets: [require('@deriv/quill-design/quill-tailwind/tailwind.config.cjs')],
};
- add the required stylesheet to your global stylesheet file, so your global stylesheet should look something like:
@tailwind base;
@tailwind components;
@tailwind utilities;
@import '@deriv/quill-design/dist/quill-design.css';
@import '@deriv/quill-design/quill-tailwind/styles.css';
@import '@deriv/quill-design/quill-tailwind/fonts.css';
Please follow the instruction on Setup IntelliSense to have developer experience.