Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: update docs

Dillion Vermaa183f1260cef
diff --git a/content/docs/components/rainbow-button.mdx b/content/docs/components/rainbow-button.mdx
index da4802bb..1d08fbca 100644
--- a/content/docs/components/rainbow-button.mdx
+++ b/content/docs/components/rainbow-button.mdx
@@ -84,6 +84,50 @@ module.exports = {
<Step>Update the import paths to match your project setup.</Step>
+<Step>Update `globals.css`</Step>
+
+Add the following to your `globals.css` file:
+
+```css
+:root {
+ --color-1: 0 100% 63%;
+ --color-2: 270 100% 63%;
+ --color-3: 210 100% 63%;
+ --color-4: 195 100% 63%;
+ --color-5: 90 100% 63%;
+}
+```
+
+<Step>Update `tailwind.config.js`</Step>
+
+Add the following animations to your `tailwind.config.js` file:
+
+```js title="tailwind.config.js" {5-20}
+/** @type {import('tailwindcss').Config} */
+module.exports = {
+ theme: {
+ extend: {
+ colors: {
+ "color-1": "hsl(var(--color-1))",
+ "color-2": "hsl(var(--color-2))",
+ "color-3": "hsl(var(--color-3))",
+ "color-4": "hsl(var(--color-4))",
+ "color-5": "hsl(var(--color-5))",
+ },
+ animation: {
+ rainbow: "rainbow var(--speed, 2s) infinite linear",
+ },
+ keyframes: {
+ rainbow: {
+ "0%": { "background-position": "0%" },
+ "100%": { "background-position": "200%" },
+ },
+ },
+ },
+ },
+};
+```
+
</Steps>
</TabsContent>