Skip to content
This repository was archived by the owner on Aug 3, 2020. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use hex value as default color option
  • Loading branch information
hacknug committed Jul 1, 2018
commit 4281a2879b95c74b8d18eea065daba83ef8adb2b
10 changes: 8 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
export default ({name = 'spinner', color = 'grey-light'} = {}) => ({addUtilities, config}) => addUtilities({
export default ({
name = 'spinner',
color = '#dae1e7'
} = {}) => ({
addUtilities,
config
}) => addUtilities({
[`.${name}`]: {
'color': 'transparent !important',
'pointer-events': 'none',
'position': 'relative',
'&:after': {
'animation': 'spinAround 500ms infinite linear',
'border': `2px solid ${config(`colors.${color}`)}`,
'border': `2px solid ${color}`,
'border-radius': '290486px',
'border-right-color': 'transparent',
'border-top-color': 'transparent',
Expand Down