-
-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/lucide-icons/lucide into im…
…plement-deprecate-comment
- Loading branch information
Showing
92 changed files
with
1,038 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"$schema": "../category.schema.json", | ||
"title": "File icons", | ||
"icon": "layout" | ||
"icon": "panels-top-left" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"$schema": "../category.schema.json", | ||
"title": "Layout", | ||
"icon": "layout" | ||
"icon": "panels-top-left" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Star, StarHalf } from "lucide-react"; | ||
import "./icon.css"; | ||
|
||
function App() { | ||
return ( | ||
<div className="app"> | ||
<div className="star-rating"> | ||
<div className="stars"> | ||
{ Array.from({ length: 5 }, () => ( | ||
<Star fill="#111" strokeWidth={0} /> | ||
))} | ||
</div> | ||
<div className="stars rating"> | ||
<Star fill="yellow" strokeWidth={0} /> | ||
<Star fill="yellow" strokeWidth={0} /> | ||
<StarHalf fill="yellow" strokeWidth={0} /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import App from './App.js?raw' | ||
import styles from '../../../basics/examples/styles.css?raw' | ||
import IconCss from './icon.css?raw' | ||
|
||
const files = { | ||
'App.js': { | ||
code: App, | ||
active: true, | ||
}, | ||
'icon.css': { | ||
code: IconCss, | ||
readOnly: false, | ||
}, | ||
'styles.css': { | ||
code: styles, | ||
hidden: true | ||
}, | ||
} | ||
|
||
export default files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.star-rating { | ||
position: relative; | ||
} | ||
|
||
.stars { | ||
display: flex; | ||
gap: 4px; | ||
} | ||
|
||
.rating { | ||
position: absolute; | ||
top: 0; | ||
} | ||
|
30 changes: 30 additions & 0 deletions
30
docs/guide/advanced/examples/global-styling-absolute-strokewidth-example/App.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { | ||
TentTree, | ||
Caravan, | ||
FlameKindling, | ||
MountainSnow, | ||
Trees, | ||
Axe, | ||
Map, | ||
CloudMoon, | ||
Sparkles, | ||
} from "lucide-react"; | ||
import "./icon.css"; | ||
|
||
function App() { | ||
return ( | ||
<div className="app"> | ||
<TentTree /> | ||
<Caravan /> | ||
<FlameKindling /> | ||
<MountainSnow /> | ||
<Trees /> | ||
<Axe /> | ||
<Map /> | ||
<CloudMoon /> | ||
<Sparkles /> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; |
20 changes: 20 additions & 0 deletions
20
docs/guide/advanced/examples/global-styling-absolute-strokewidth-example/files.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import App from './App.js?raw' | ||
import styles from '../../../basics/examples/styles.css?raw' | ||
import IconCss from './icon.css?raw' | ||
|
||
const files = { | ||
'icon.css': { | ||
code: IconCss, | ||
readOnly: false, | ||
active: true, | ||
}, | ||
'App.js': { | ||
code: App, | ||
}, | ||
'styles.css': { | ||
code:styles, | ||
hidden: true | ||
}, | ||
} | ||
|
||
export default files |
16 changes: 16 additions & 0 deletions
16
docs/guide/advanced/examples/global-styling-absolute-strokewidth-example/icon.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.lucide { | ||
width: 48px; | ||
height: 48px; | ||
stroke-width: 1.5; | ||
} | ||
|
||
.lucide * { | ||
vector-effect: non-scaling-stroke; | ||
} | ||
|
||
.app { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
grid-template-rows: 1fr 1fr 1fr | ||
gap: 6px; | ||
} |
30 changes: 30 additions & 0 deletions
30
docs/guide/advanced/examples/global-styling-css-example/App.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { | ||
CakeSlice, | ||
Candy, | ||
Apple, | ||
Cookie, | ||
Martini, | ||
IceCream2, | ||
Sandwich, | ||
Wine, | ||
Dessert, | ||
} from "lucide-react"; | ||
import "./icon.css"; | ||
|
||
function App() { | ||
return ( | ||
<div className="app"> | ||
<CakeSlice /> | ||
<Candy /> | ||
<Apple /> | ||
<Cookie /> | ||
<Martini /> | ||
<IceCream2 /> | ||
<Sandwich /> | ||
<Wine /> | ||
<Dessert /> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; |
20 changes: 20 additions & 0 deletions
20
docs/guide/advanced/examples/global-styling-css-example/files.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import App from './App.js?raw' | ||
import styles from '../../../basics/examples/styles.css?raw' | ||
import IconCss from './icon.css?raw' | ||
|
||
const files = { | ||
'icon.css': { | ||
code: IconCss, | ||
readOnly: false, | ||
active: true, | ||
}, | ||
'App.js': { | ||
code: App, | ||
}, | ||
'styles.css': { | ||
code:styles, | ||
hidden: true | ||
}, | ||
} | ||
|
||
export default files |
14 changes: 14 additions & 0 deletions
14
docs/guide/advanced/examples/global-styling-css-example/icon.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.lucide { | ||
/* Change this! */ | ||
color: #ffadff; | ||
width: 56px; | ||
height: 56px; | ||
stroke-width: 1px; | ||
} | ||
|
||
.app { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
grid-template-rows: 1fr 1fr 1fr | ||
gap: 6px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
<script setup> | ||
import { Sandpack } from 'sandpack-vue3' | ||
import sandpackTheme from '../../.vitepress/theme/sandpackTheme.json' | ||
import sizeIconExample from './examples/filled-icon-example/files.ts' | ||
</script> | ||
|
||
# Filled Icons | ||
|
||
Fills are officially not supported. | ||
However, all SVG properties are available on all icons. | ||
Fill can still be used and will work fine on certain icons. | ||
|
||
Example with stars: | ||
|
||
<!-- Code Example with stars --> | ||
<Sandpack | ||
template="react" | ||
:theme="sandpackTheme" | ||
:files="sizeIconExample" | ||
:customSetup='{ | ||
dependencies: { | ||
"lucide-react": "latest" | ||
} | ||
}' | ||
:options="{ | ||
editorHeight: 480, | ||
editorWidthPercentage: 60, | ||
}" | ||
/> | ||
|
||
## Will Lucide have fills in the future? | ||
|
||
This feature is requested several times and discussion is happening at: [#458](https://github.com/lucide-icons/lucide/discussions/458). | ||
This feature has been requested several times and discussion is happening at [#458](https://github.com/lucide-icons/lucide/discussions/458). |
Oops, something went wrong.