You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Users will be able to **`override`** and **`extend`** defaults the same way they can with Tailwind's built-in styles.
25
+
26
+
27
+
## Installation & changes in _tailwind.config.js_
6
28
7
29
#### Yarn
8
-
```
30
+
31
+
```sh
9
32
yarn add tailwindcss-textshadow --dev
10
33
```
34
+
11
35
#### npm
12
-
```
36
+
37
+
```sh
13
38
npm i --save-dev tailwindcss-textshadow
14
39
```
15
-
## Add following changes in tailwind.config.js
16
40
17
-
#### import the plugin
41
+
#### :heavy_check_mark:import the plugin
18
42
19
43
Add the plugin to the `plugins` array in your Tailwind configuration file `(tailwind.config.js)`.
20
44
@@ -23,59 +47,107 @@ plugins: [
23
47
require('tailwindcss-textShadow')
24
48
]
25
49
```
50
+
> :beer:**Congratulations! You are ready to use `text-shadow` in your project.**
51
+
52
+
53
+
54
+
## How to use
55
+
56
+
#### No text shadow
57
+
58
+
Use `.text-shadow-none` to remove an existing text shadow from an element. This is most commonly used to remove a shadow that was applied at a smaller breakpoint.
59
+
60
+
```html
61
+
<spanclass="text-shadow-none"></span>
62
+
```
63
+
64
+
#### Responsive
65
+
66
+
To control the textshadow of an text element at a specific breakpoint, add a `{screen}:` prefix to any existing _text shadow utility_. For example, use `xl:text-shadow-lg` to apply the `text-shadow-lg` utility at only large screen sizes and above.
67
+
68
+
For more information about Tailwind's responsive design features, check out the [Responsive Design](https://tailwindcss.com/docs/responsive-design) documentation.
You can change, add, or remove `textShadow` property by editing the `theme.textShadow section` of your Tailwind config.
79
+
### Text Shadow
80
+
81
+
By default this plugin provides drop text shadow utilities with five modifires, and a utility for removing existing text shadows. You can change, add, or remove these by editing the `theme.textShadow` section of your Tailwind config.
82
+
83
+
If a `default` text shadow is provided, it will be used for the *non-suffixed*`.text-shadow` utility. Any other keys will be used as suffixes, for example the key `'2xl'` will create a corresponding `.text-shadow-2xl` utility.
84
+
85
+
#### To override the default
30
86
31
-
If a default shadow is provided, it will be used for the non-suffixed `.text-shadow` utility. Any other keys will be used as suffixes, for example the key '2' will create a corresponding `.text-shadow-2` utility.
To control the textshadow of an text element at a specific breakpoint, add a {screen}: prefix to any existing textShadow utility. For example, use md:text-shadow-h1 to apply the text-shadow-h1 utility at only medium screen sizes and above.
125
+
By default, only responsive, hover and focus variants are generated for text shadow utilities.
You can control which variants are generated for the text shadow utilities by modifying the **`textShadow`** property in the variants section of your tailwind.config.js file.
128
+
129
+
For example, this config will also generate active and group-hover variants:
0 commit comments