Giter Site home page Giter Site logo

firefoxux / photon Goto Github PK

View Code? Open in Web Editor NEW
272.0 26.0 73.0 83.33 MB

Firefox’s Photon Design System.

Home Page: https://design.firefox.com/photon/

License: Mozilla Public License 2.0

HTML 26.31% JavaScript 3.77% CSS 25.42% Ruby 0.06% SCSS 42.85% Shell 1.59%

photon's Introduction

Photon Design System

This project is no longer maintained or worked on. More to come soon on our next design system documentation website.

Running Photon

Requires:

  • docker

To run (with hot-reloading!):

  • First, check out this repository into a folder.
  • Go to your command line, enter that folder, and run the following commands:
docker pull praqma/gh-pages
docker run --name photon -d -v $PWD/jekyll:/home/jenkins -p 4000:4000 praqma/gh-pages || docker start photon
docker exec -it photon jekyll serve --watch --host=0.0.0.0

Once you have something you like, it's time to share it with the rest of us!

To get your changes merged:

  • Make sure you're working on master, and submit the pull request to there.
  • Make your pull request as small as possible (so it's easier to review and merge them).
  • If it's something that needs to be merged as soon as possible, add a tag (e.g. urgent).

photon's People

Contributors

aminalhazwani avatar amyylee avatar brassy- avatar bwinton avatar designakt avatar emceeaich avatar ericawright avatar errolyn avatar exe-boss avatar fgaz avatar flodolo avatar flytori avatar heyneff avatar julienw avatar kerrick avatar kwanesq avatar lonnen avatar marsjaninzmarsa avatar mheubusch avatar mte90 avatar nicbarajas avatar pwalm avatar roryokane avatar ryanfeeley avatar sandipnirmal avatar sotayamashita avatar sudeshana avatar tlhuang avatar topaxi avatar weivicky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

photon's Issues

Redundant links on Resources page

Under every font in the Typography section you have the text "Learn more about it in the typography page." under every font.

Suggestion: Just use that string once under the header.

All downloads should be available under the Resources section

Right now I can download some assets from the Resources section, but also from the Typography section. Maybe all the downloads should be under Resources and there could be a link to it from the Typography page. Or the content could be duplicated on to both.

Add BiDi/RTL guidelines

Examples Section

Could we display a curated sample of products implementing this design system?

Icons not loading on the front page

When I mouse over a section on the front page like "launch faster" I get a broken image icon. Inspecting with the dev tools shows that the svg is not loaded.
imagenotloaded

Improve tables layout on mobile

On a small screen (~320px) sometimes tables content collapse on multiple lines. Think about a possible solution to keep the layout clean.

Downloadable colour palettes

I would find it pretty useful if I could download the colour pallettes and import them into Sketch and/or Photoshop.

Would be great to be able to link to icon assets

Right now you can link to the entire page with the icons on it but I can't link to a specific one for sharing with my team. Is there a way to directly link to the view with the sidebar for the correct icon?

Google Analytics might be way off

With probably most of us at Firefox using some sort of AdBlocker or Tracking Protection our analytics might be way off and therefore useless to us.
Let's do our own session count to get an idea of the difference and to see if it is actually a problem.

Better i.a. for generic pages

How can we better manage those 4 generic/intro pages?

- Welcome
- Getting started
- Principles
- Design for scale

Current version:

- Welcome (hidden under the firefox ds logo)
- Firefox Design System
  - Getting started
  - Principles
  - Design for scale

[Website Design] No graceful fallback when browser lacks JavaScript support

design.firefox.com/photon website does not provide graceful fallback when viewed with a browser lacking JavaScript support, or when using NoScript and not allowing scripting from firefox.com. Other portions of the website, such as Values and Firefox Icons, also have some missing content when client-side JavaScript is not available, but this issue is specifically about the Photon Design System due to the egregious nature of the lacking fallback.

Specifically, none of the site's information is viewable. Link is a screenshot of how the site is rendered by Firefox 55 under these conditions:
https://i.imgur.com/guGJe4h.png

This is someone opposed to Mozilla's aim for a free, open, compatible web.

Expected behavior:

  • Content should still be viewable, even in a raw form.
  • Message, otherwise hidden by JavaScript, stating something to the effect of, "This website looks better with JavaScript enabled. Our unobscurated scripts are available in our GitHub for your viewing pleasure."

I'd offer patches, but due to my lack of Javascript knowledge and current Meatspace Life issues, I fear such would be more of a hindrance than a help at this time.

Incorrect links on Resources page

Under Icons, the link "icon grid" goes to a 404 page.
Under Typefaces, the links to the Typography page all go to the Welcome page.

Indicate anchors to allow linking directly to them

For people to be able to link to sections of a page, they should be made aware of the anchors that exist, and be able to get the URL to directly link to them.
Additionally we should highlight an anchor that is active for people to know that this is being linked to.
Smashing Mag is a good example of both those aspects:

enablelinkingtoanchors
(see Smashing Magazin - link to an anchor in an article)

A List Apart provides similar functionality, but seams a bit too technical with it:

enablelinkingtoanchors2

Idea: One large font package

Right now I can download 5 different fonts from the Typography section. If I was setting up a computer as a designer, I'd probably want all of them. Maybe it would be convenient to also provide one zip with all the fonts so I don't have to download/decompress/install 5 separate times.

Development documentation

I am currently working on a wiki page for content creators and editors. It gives instructions on how to use the repository for creating and editing contents. I also created a how it works wiki page where we could document how the repository works, it would be mostly for developers. Would be nice to add contents also there 😄

SyntaxError: Unexpected token ... (webpack.config.js:70)

npm install && npm run build, I see the following error:

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN workshop@ No repository field.
npm WARN workshop@ No license field.

> workshop@ build PATH_TO_REPO/photon
> cross-env NODE_ENV=production webpack --optimize-minimize

PATH_TO_REPO/photon/webpack.config.js:70
  ...pagePlugins,
  ^^^

SyntaxError: Unexpected token ...
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at module.exports (PATH_TO_REPO/photon/node_modules/webpack/bin/convert-argv.js:80:13)
    at Object.<anonymous> (PATH_TO_REPO/photon/node_modules/webpack/bin/webpack.js:39:40)
    at Module._compile (module.js:410:26)

npm ERR! Linux 4.8.0-42-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! workshop@ build: `cross-env NODE_ENV=production webpack --optimize-minimize`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the workshop@ build script 'cross-env NODE_ENV=production webpack --optimize-minimize'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the workshop package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env NODE_ENV=production webpack --optimize-minimize
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs workshop
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls workshop
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     PATH_TO_REPO/photon/npm-debug.log

(I have replaced my repository path with PATH_TO_REPO)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.