Theme Types

As of v3, Dripsy has a theme.types field, which lets you customize elements of your TypeScript Intellisense.

Usage

import { makeTheme } from 'dripsy'
export const theme = makeTheme({
types: {
// default: false
reactNativeTypesOnly: boolean,
// default: 'never'
onlyAllowThemeValues: 'always' | 'never' | { [scale]: 'always' | 'never' },
},
})

For an explanation of how and when to use these, reference the TypeScript Guide.