Skip to content
This repository was archived by the owner on Sep 11, 2021. It is now read-only.

Commit 088edc2

Browse files
committed
add boxShadow to configuration
1 parent 219ae4b commit 088edc2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/pages/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Here is a list of the all of the available options, as well as their default val
4949
backgroundColor: defaultTheme.colors.white,
5050
focusBorderColor: defaultTheme.colors.blue[400],
5151
focusShadow: defaultTheme.boxShadow.outline,
52+
boxShadow: defaultTheme.boxShadow.none,
5253
checkboxSize: '1em',
5354
radioSize: '1em',
5455
checkboxIcon: \`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#fff"><path d="M13.293 4.293a1 1 0 0 1 0 1.414L7 12a1 1 0 0 1-1.414 0L3.293 9.707a1 1 0 0 1 1.414-1.414l1.586 1.586 5.586-5.586a1 1 0 0 1 1.414 0z"/></svg>\`,

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
2828
backgroundColor: defaultTheme.colors.white,
2929
focusBorderColor: defaultTheme.colors.blue[400],
3030
focusShadow: defaultTheme.boxShadow.outline,
31+
boxShadow: defaultTheme.boxShadow.none,
3132
checkboxSize: '1em',
3233
radioSize: '1em',
3334
checkboxIcon: `<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="#fff"><path d="M13.293 4.293a1 1 0 0 1 0 1.414L7 12a1 1 0 0 1-1.414 0L3.293 9.707a1 1 0 0 1 1.414-1.414l1.586 1.586 5.586-5.586a1 1 0 0 1 1.414 0z"/></svg>`,
@@ -42,6 +43,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
4243
addComponents({
4344
'.form-checkbox': {
4445
appearance: 'none',
46+
boxShadow: options.boxShadow,
4547
display: 'inline-block',
4648
height: options.checkboxSize,
4749
width: options.checkboxSize,
@@ -68,6 +70,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
6870
},
6971
'.form-radio': {
7072
appearance: 'none',
73+
boxShadow: options.boxShadow,
7174
display: 'inline-block',
7275
height: options.radioSize,
7376
width: options.radioSize,
@@ -97,6 +100,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
97100
backgroundColor: options.backgroundColor,
98101
borderWidth: options.borderWidth,
99102
borderRadius: options.borderRadius,
103+
boxShadow: options.boxShadow,
100104
padding: `${options.verticalPadding} ${options.horizontalPadding}`,
101105
fontSize: options.fontSize,
102106
lineHeight: options.lineHeight,
@@ -110,6 +114,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
110114
backgroundColor: options.backgroundColor,
111115
borderWidth: options.borderWidth,
112116
borderRadius: options.borderRadius,
117+
boxShadow: options.boxShadow,
113118
paddingTop: options.verticalPadding,
114119
paddingRight: `calc(${options.selectIconOffset} * 2 + ${options.selectIconSize})`,
115120
paddingBottom: options.verticalPadding,

0 commit comments

Comments
 (0)