stackexchange / stacks-icons Goto Github PK
View Code? Open in Web Editor NEWAuthoring tools for Stack Overflow's shared icon set.
Home Page: https://stackoverflow.design/product/resources/icons
License: MIT License
Authoring tools for Stack Overflow's shared icon set.
Home Page: https://stackoverflow.design/product/resources/icons
License: MIT License
In our documentation site, we include phone and laptops directly in the markup. We should consider adding these to our icon set.
Our icons should be delivered as a nuget package for other solutions to consume. We should include all the icons and spots, while generating a helper.cs file that provides definitions.
Similar to the Slack and MSTeams icons already in Stacks, please add an icon for Discord. Icons can be found at https://discord.com/branding
Can we get an icon for Jira? They're available on Atlassian's design system, though I'm not sure which one we want:
Given the following technical constraints:
We're going to find a richer aesthetic that works at:
For example, these are rendered too large to satisfy legibility at 18px / 16px, but satisfy technical constraints:
Update the Enterprise logo icons with "For Enterprise" version. Add "For Teams" logo, as well as SO Talent and Engagement logos.
We should also build a simple html index of the final output for smoke and visual regression testing. I've been trolled too many times by fill rules filling in icons entirely.
Let's include spot illustrations in our icon set.
TODO:
We have @Svg.TrendingDown
and @Svg.TrendingUp
, but what if a metric isn't trending in a meaningful way and it's the same compared to the last time point? It would be nice to have an icon representing no change in trend.
This a common icon used in the sports world to show when teams are moving up, down, or staying in the same place in a league's standings / table. I'm open to suggestion here, though.
Hi, I want to based my editor on Stacks-Editor but the number of icons is kinda limited. Is there anyone who can create "missing" icons (like for example H1 to H6 icons, alignment icons and many more) or I would have to do them by myself?
I would like to use the StackOverflow icon within my Markdown as an image link like so:
[![alt text](logo) Link to SO tag](https://stackoverflow.com/questions/tagged/my-tag)
Is it possible to consume these icons in this way?
I was surprised not to see them available on https://icongr.am/
Our icons should be available to us in Figma now that we have a team license.
On Stack for Business, we have a billing page that has action items to download the invoice and receipt. I think this might be an opportunity for us to add a download icon to go alongside download links (or replace if we're very tight on space).
I found these two icons on Google Material design and Flaticon but thinking we might want to simplify it to a down arrow with the line underneath?
If we're to replace the Q&A questions actions with SVG replacements, we'll need natively-sized icons.
We could use some icons to represent rendered markdown, markdown source, and diffs.
The generated index.esm.js
file lacks namespaces and conflicts with the typescript definitions.
The distributed module contents only define the names found inside the icons
and spots
modules, which then are all exported as is. Because of this, you can't actually use import { IconFaceMindBlown } from "@stackoverflow/stacks-icons/icons";
as the documentation claims.
Instead, you get an error:
index.ts:1:35 - error TS2307: Cannot find module '@stackoverflow/stacks-icons/icons' or its corresponding type declarations.
1 import { IconFaceMindBlown } from "@stackoverflow/stacks-icons/icons";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can't simply use import { IconFaceMindBlown } from "@stackoverflow/stacks-icons";
as the type information tells typescript that at that level only Icons
and Spots
are available.
To reproduce, in an empty directory create the following three files:
{
"name": "mcve",
"dependencies": { "@stackoverflow/stacks-icons": "^5.3.1" },
"devDependencies": { "typescript": "^4.9.5" },
"scripts": { "build": "npx tsc" }
}
{
"compilerOptions": {
"moduleResolution": "node",
"target": "ES2020"
},
"files": ["index.ts"]
}
import { IconFaceMindBlown } from "@stackoverflow/stacks-icons/icons";
export { IconFaceMindBlown }
then run
npm install && npm build
Went for a long drive today and may have accidentally come up with a solution allowing for the same flexibility in our icon set that SVG allows, only for PNG.
Proposal
@2x
and #000
..css
file, export something like .png-icon.iconLink
with background-image: url(../path/to/Link.png)
.png-icon
that's based on CSS filters using this tool. eg. .png-icon.iconLink.fc-orange-400
. These classes will also have their dark mode equivalents.@Png.Link.With("fc-orange-400")
Any thoughts before I hack together a proof of concept?
Things to solve / discover:
<div class="fc-orange-400"><div class="png-icon"></div></div>
, we'll probably want that icon to be orange.The <svg>
tag in most icons (e.g., LogoEnterprise.svg) is missing the xmlns="http://www.w3.org/2000/svg"
attribute. This causes them not to load as images in Chrome, Firefox or Internet Explorer. GitHub also shows an invalid file error: https://github.com/StackExchange/Stacks-Icons/blob/master/build/lib/LogoEnterprise.svg
This is already the case in the build/lib
folder, so it's not a problem of the Gruntfile/Build process.
Correction: This IS a problem with the build process, the original icons are in src/export and are good: https://github.com/StackExchange/Stacks-Icons/blob/master/src/export/LogoEnterprise.svg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.