8 | {({ className, style, tokens, getLineProps, getTokenProps }) => (
9 |
10 | {tokens.map((line, i) => (
11 |
12 | {line.map((token, key) => (
13 |
14 | ))}
15 |
16 | ))}
17 |
18 | )}
19 |
20 | )
21 | }
22 |
--------------------------------------------------------------------------------
/packages/fower-plugin-opacity/types/index.d.ts:
--------------------------------------------------------------------------------
1 | import { FowerPlugin, ResponsiveValue } from '@fower/core'
2 |
3 | declare const _default: () => FowerPlugin
4 | export default _default
5 |
6 | declare module '@fower/atomic-props' {
7 | export interface AtomicProps {
8 | /**
9 | * Set opacity to some value
10 | *
11 | * opacity-20 is `opacity: 0.2`
12 | *
13 | * ```css
14 | * { opacity: 0.2; }
15 | * ```
16 | *
17 | * @example
18 | * ```tsx
19 | *