Skip to content

Commit

Permalink
feat: add focus tokens (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
franckgaudin committed Dec 14, 2021
1 parent 626060e commit b1a4aa0
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/silent-badgers-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@igloo-ui/tokens': minor
---

Adding a focus token
7 changes: 7 additions & 0 deletions docs/base10/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,13 @@
}
]
},
{
"focus": [
{
"focus": "0 0 0 2px #ffffff, 0 0 0 3.5px #0C46D0"
}
]
},
{
"spacing": [
{
Expand Down
6 changes: 6 additions & 0 deletions docs/base10/tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ $shadow-6: 0 0.1rem 0.6rem 0 rgba(35, 48, 67, 0.1);
$shadow-12: 0 0.4rem 1rem 0.4rem rgba(35, 48, 67, 0.1);
$shadow-24: 0 1rem 1.8rem 0.8rem rgba(35, 48, 67, 0.1);

/**
* @tokens Focus
* @presenter Focus
*/
$focus: 0 0 0 2px #ffffff, 0 0 0 3.5px #0C46D0;

/**
* @tokens Spacing
* @presenter Spacing
Expand Down
7 changes: 7 additions & 0 deletions docs/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,13 @@
}
]
},
{
"focus": [
{
"focus": "0 0 0 2px #ffffff, 0 0 0 3.5px #0C46D0"
}
]
},
{
"spacing": [
{
Expand Down
6 changes: 6 additions & 0 deletions docs/tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ $shadow-6: 0 0.1rem 0.6rem 0 rgba(35, 48, 67, 0.1);
$shadow-12: 0 0.4rem 1rem 0.4rem rgba(35, 48, 67, 0.1);
$shadow-24: 0 1rem 1.8rem 0.8rem rgba(35, 48, 67, 0.1);

/**
* @tokens Focus
* @presenter Focus
*/
$focus: 0 0 0 2px #ffffff, 0 0 0 3.5px #0C46D0;

/**
* @tokens Spacing
* @presenter Spacing
Expand Down
4 changes: 4 additions & 0 deletions tokens/shadow.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@
"value": "0 1rem 1.8rem 0.8rem rgba(35, 48, 67, 0.1)",
"group": "shadow"
}
},
"focus": {
"value": "0 0 0 2px {samoyed.value}, 0 0 0 3.5px {electric-blue.600.value}",
"group": "focus"
}
}

0 comments on commit b1a4aa0

Please sign in to comment.