12 ms·
U.S. Web Design Standards 1.0
- neves 10y agoGreat! Even if you disagree, just the existence of a Gov standard will: 1) Create a minimal common language for all sites that the citizens are forced to use. Now we can all can use these patterns in our sites knowing that more users will know them. Remember that software isn't intuitive, but familiar: http://www.asktog.com/papers/raskinintuit.html http://www.asktog.com/papers/raskinintuit.html 2) Force software developers for public services to put up a minimal decent interface, instead of just a list of features. The best page is their Design Principles: https://standards.usa.gov/design-principles/ https://standards.usa.gov/design-principles/
- neves 10y agoIt is even better. They also have code guidelines. Easing the choosing of technologies (open source!) and configuration. Less opportunities for that crazy developer who wants to implement your costumer facing site in Common Lisp.
- ethbro 10y ago> Less opportunities for that crazy developer who wants to implement your costumer facing site in Common Lisp. Somewhere, an LM-2 who has been faithfully serving requests since 1981 just cried a single, perfectly simulated electronic tear.
- kiriakasis 10y agoI think it is more about a general lack of trust; I think (my opinion) that neves was talking about choosing a technology for religion vs for pratical reasons.
- mirekrusin 10y agoSurely this very system (HN) shed a tear somewhere between brackets as well.
- chaoky 10y agoPlease tell me this is sarcasm! It's hard to tell. If it isn't, then all I have to say is that hacker news is written in the lisp dialect arc of Paul Graham, who got rich off of a customer facing site written in common lisp...
- lr4444lr 10y ago* Less opportunities for that crazy developer who wants to implement your costumer facing site in Common Lisp.* Yeah, that would never work: http://www.paulgraham.com/avg.html http://www.paulgraham.com/avg.html
- deleted 10y ago[deleted]
- voidlogic 10y ago>Create a minimal common language for all sites that the citizens are forced to use. Hopefully, but this is just for the federal government. Each state may have their own standard or no standard at all. I have a feeling people spend more time interacting with state government websites...
- jonknee 10y ago> Each state may have their own standard or no standard at all. All the better that this is being given away for anyone to use.
- throwaway96495 10y agoDoesn't necessarily matter. Usually the easiest path to resolving the next change request will be taken, i.e. patching on to the existing crappy thing from the 90s. The only thing that can change it is someone shouting. I suspect most software (not the glitzy things on HN) are driven by shouting. Shouting Driven Development. If the customer doesn't care enough about UI to raise their voice, then UI won't be prioritized.
- neves 10y agoThis is the beautiful aspect of this project: now the easiest path for a new project is to use the "official design", No need to argue about it.
- matt4077 10y agoGovernment standards are often used as blueprints in the private sector as well, not by enforcement but by contractual agreements with contractors. They may not always be at the bleeding edge, but they're usually very thorough, and have an ecosystem around them, such as seminars and case law.
- graycat 10y ago> Remember that software isn't intuitive, but familiar: Well put. In practice, largely correct. But literally minded me wants software also to be DOCUMENTED. E.g., at my Web site, each page has a link Help that explains the page hopefully in simple but clear terms. But, wait, there's more: At my Web site, also a user never has to try to guess what an icon does -- there are no icons. Civilizations had lots of icons, and eventually we got the Roman alphabet which I believe is a huge step forward. So, for links I just use words in the Roman alphabet. The pages never do anything sudden, e.g., cover up what a user is reading with a pull-down, pop-up, or roll-over -- there aren't any. For your > Remember that software isn't intuitive, but familiar: I do exploit that: The pages all use just the simplest, old HTML, and I've written not even a single line of JavaScript (JS). Microsoft's ASP.NET has a little standard JS for me, maybe having to do with positioning the cursor or some such. But, really, all the pages just use the most standard and elementary HTML controls 2+ billion people already know very well. For more, the fonts are all relatively large, say, 24 pixels high. The colors all have high contrast, and the 25% of men who are partially red-green color blind will still do just fine. There is just one Web site with just one user interface (UI), the same for workstations, desktop, laptops, tablets, pads, smartphones, watches, Dick Tracy's watch, Flash Gordon's magic decoder rings, and any toys in Cracker Jacks boxes that can run a Web browser up to date as of about 10 years ago. Each Web page is exactly 800 pixels wide. The layout is not by HTML div elements but by tables and is always the same for all users. There are always both vertical and horizontal scroll bars, and the pages should still be usable in a window as narrow as 300 pixels. For more, how the UI works is simple and intuitive, so much so a 7 year old with a cheap smartphone and who knows no English (the text is all in very simple English with no alternatives) should be able to do fine with three minutes of instruction or 15 minutes of experimentation. So, one of my key thoughts was to exploit for basic HTML just your > Remember that software isn't intuitive, but familiar: So, I stayed with just the simplest HTML knowing that 2+ billion people were then already quite "familiar". Where can one see my Web site? At present nowhere! Since just now my development computer is sick from data corruption, e.g., crucial parts of Microsoft's .NET are not available to my software, my software won't run even on my development computer. Right, bummer. But I've put together a nice list of parts for a new development computer also powerful enough for a good, first Web server for my Web site. Intend to order the parts and plug them together soon! Then I'll get the software and data on the new computer, make some tweaks in the code I have in mind, load a lot of data, and go live.
- Twirrim 10y agoState websites drastically improved in Hawaii once the company I was working for (that provides https://ehawaii.gov https://ehawaii.gov and many of the state's sites) managed to get a centrally defined standard set in conjunction with the CTO. It meant we could get everyone on the same page, speaking the same design language and really thinking about how they presented their departments information.
- Keverw 10y agoWow Hawaii's website got to be the best state website. Very modern and clean layout! Great job. I know some states don't even have responsive websites either, or some do but subdomains are still outdated designs. I wonder if how well a state maintains their website, is an indication of the rest of the state's quality. I know next time I move I'm going to pick a state based on the weather anyways(thinking Florida). Very surprised Florida's website is very outdated. Mobile web design has been around for quite a while, and I feel like their website is a bit of a disservice to people wanting information on the go. It seems like though states seem to care more about their website, than cities do... My local city here in Ohio website isn't even mobile friendly. Edit: Well I found one subdomain that isn't mobile friendly - https://emrs.ehawaii.gov/emrs/public/home.html https://emrs.ehawaii.gov/emrs/public/home.html but still it looks like most of their sites are.
- Twirrim 10y agoIt was really cutting edge when it was released around 4 years ago. Mobile first, statically generated content (regenerated every hour or so). The design standards for the state were drawn up in collaboration between the CTO's office and my employers at the time (at no expense to the state). First and foremost: Mobile first, responsive. That EMRS website appears to be the same old same old. It has been that way for at least 7-8 years now at the very least, as it looked like that already when I joined the company (2010, I think). I guess they haven't agreed to a redesign yet (most of the agencies jumped on the redesign opportunity, especially given there was no financial impact on them.)
- DopamineHigh 10y ago
- tambourine_man 10y agoI don't know if I agree with Jeff, the iPad is definitively more intuitive, because it mimics real world interaction better than the mouse. There's no explaining needed, touch it, move it, it's direct manipulation vs indirect. I'm sure, when we have weight, texture feedback, it will be even more "intuitive"
- wernercd 10y agoYou forgot Revolutionary. Break Through. Cool. Beautiful. Faster. Zippy. Precise. Awesome. Magic! https://www.youtube.com/embed/BETSuT2RNLs?version=3&hl=en&fs=1&enablejsapi=1&origin=https://www.buzzfeed.com&autoplay=0&showinfo=0&wmode=opaque https://www.youtube.com/embed/BETSuT2RNLs?version=3&hl=en&fs...
- tambourine_man 10y agoI don't understand what your comment has to do with what I wrote, but yeah, Apple uses a lot of adjectives to sell their products.
- NTH 10y agoNothing about this forces any government projects to do anything. It's just recommended guidelines.
- ronilan 10y agoAnd so the Hero Unit becomes a US standard.
- skylan_q 10y agoHow long until we start getting fines for not complying with gov't standards?
- algesten 10y agoI'm really surprised all the typography options require downloadable fonts (Source Sans Pro and/or Merriweather). I'm on a 1mbit throttled connection right now, and it's really noticeable, even on these pages, the font loading takes a while and suddenly the whole page jumps around and re-renders. Though apart from that It's a great guideline. Really glad they put so many color choices in there and taking care of showing how to combine typography with color. Many guidelines I've seen have two accent colors and when you come to implementing the site, you straight away must deviate from the guideline and invent new things.
- dangero 10y agoIt does suck especially if agencies rehost the fonts and you end up downloading the same ones over and over. Hashed font caching solves this problem pretty well and that seems like the answer instead of forcing everyone to use a common set of fonts.
- algesten 10y agoMaybe there could be room for innovation here? Signed font sets with known hashes (maybe piggyback on HTTP ETag?), so over time your browser has a cache of "well known fonts". Things like Source Sans Pro are not unusual.
- mschuster91 10y agoWhy not modify the CSS syntax? For example, what now is src: url("path/my.otf") format("opentype"); can become src: url("path/my.otf") format("opentype"); src: url-hash("path/my.otf", "md5:86fb269d190d2c85f6e0468ceca42a20") format("opentype"); This way, due to the double declaration, older browsers can opt to download the file as usual while a modern browser detects the hash and can look up the file from its cache. Note I chose md5 here as an example, it may very well be possible to use any hashing scheme here.
- dchest 10y ago
- 7ewis 10y agoSo these are the web design standards the government abides by?
- dangero 10y agoWhat will happen is that adherence to these standards will be embedded in federal government software contracts moving forward. It's a good start and written by a common sense group of people.
- hyperhopper 10y agoThe main page developers will care about: https://pages.18f.gov/frontend/#intro https://pages.18f.gov/frontend/#intro Some things are great, and show a pulse on the industry, but some aren't. For example, Bower is prohibited, but yarn isn't even mentioned or encouraged, much less required. Though they do give devs the freedom to choose any framework, with a very nice pros/cons lists of the popular ones https://pages.18f.gov/frontend/#js-frameworks https://pages.18f.gov/frontend/#js-frameworks
- chickenfries 10y agoIs yarn that big? I'm really curious as to why you think it should be 'required'.
- wslack 10y agoIssues/PRs welcome! https://github.com/18F/frontend https://github.com/18F/frontend
- dangero 10y agoThis is great at this point because it's short and simple, but I could imagine this becoming terrifying in a few years if it does not remain in good hands. The natural thing to do is point out what could be added and pretty soon it could become a massive burden to make sure you're compliant with the standards. Long term I suspect this could increase the weight (cost and time of delivery) of government software projects. If only we could have some predefined limit set of how long and complex it can become. My libertarian side is coming out here, but the government is really good at adding cool things, not so good at taking them away, decreasing them, or even maintaining them.
- matt4077 10y agoI really wish libertarians would – from time to time - point at actually unambiguously government overreach. All I ever see is "seat belts are great, but making them mandatory is a nanny-state gone wild, and soon you won't be allowed to leave the house". I think the myth of regulatory strangulation is just some fantasy of people who see a stack of paper more than an inch thick and for their lives cannot imagine why it would require so many words to make air travel (etc.) safe.
- losvedir 10y agoThis time of year and all, the tax code comes to mind. It's my only real window into government bureaucracy, but if it's anything to go by the idea that the government can produce a tangled mess from its competing incentives and constituencies is plausible to me.
- tyre 10y agoThere is a fantastic overview of this by Matt Levine at Bloomberg.[1] (The following is all quoted text): I am working on a tentative theory of regulation. It goes like this: 1) There are two kinds of regulations: custom regulations and bulk regulations. 2) A custom regulation is designed to accomplish a particular goal. You want people to do something, so you write a rule mandating that they do it and punishing them if they don't. For instance, if you want U.S. companies to keep jobs in the U.S., you might write a rule to mandate that, and to "impose a 'very major' border tax on companies that move jobs outside the U.S." That is an example of a custom regulation, and it is good because it keeps jobs in the U.S. 3) Bulk regulations are the kind that you buy by the yard, ones that you measure by quantity rather than purpose. They don't have a purpose, really; they are just generic "red tape." These are the regulations that presidents frequently announce they will cut in half, or freeze with an executive order. They're the regulations that come not from a reasoned desire to achieve a particular goal, but from a pure impulse to regulate. Bulk regulations are bad because they prevent businesses from doing business-y things without accomplishing anything good. 4) All regulations are custom regulations. 5) All discussion of "regulation" is about bulk regulations, which do not exist. [1]: https://www.bloomberg.com/view/articles/2017-01-24/metrics-fees-and-regulations https://www.bloomberg.com/view/articles/2017-01-24/metrics-f...
- deleted 10y ago[deleted]
- nateabele 10y agoI had a manager once who had a prior career in government. One of their many cynical internal catchphrases was "the conveniences which you have requested are now mandatory". Anyone with common sense and a knowledge of history knows exactly where this is going. As things continue to move online, internet access and associated technology standards begin to be declared a "public necessity" or some other nonsense along similar rhetorical lines. You don't even need to look very far for examples. UK accessibility laws (not that they're an unqualified evil, simply a legislative 'gateway drug'), references to 'digital haves and have-nots' from a few US election cycles ago, etc. I'd really hoped to be closer to retirement before this sort of thing started happening. Edit for clarity: I'm not saying this is immediately going to turn into some draconian thing, but as a founding member of a standards body[0] with a narrowly-defined intent, I've seen how easy it is for something like this to become a de-facto industry standard that non-experts use to judge things against, even when it's not appropriate. [0] http://www.php-fig.org/ http://www.php-fig.org/
- onion2k 10y agoAre you saying that legislation to make sure people with disabilities or low incomes still have access to services when all the alternatives are shut down is a bad thing?
- Gargoyle 10y agoOf course that's not what he's saying. Can we please apply the Principle Of Charity as the hosts have requested of us here and not resort to these sorts of rhetorical tricks?
- onion2k 10y agoI'm not suggesting the GP is saying having accessible services is bad. I'm asking if he believes legislation to ensure services are accessible is bad. As someone who believes web developers are often lazy and don't just do these things because they should I think the laws are important and necessary, else people will be left out from accessing what they need to access. I'd love to hear a counter argument if there is one.
- pfooti 10y agoFrom the installation: Note: Using npm to install the Standards will include jQuery version 2.2.0. Please make sure that you’re not including any other version of jQuery on your page. Isn't that pretty much precisely what peer dependencies are for?
- bjacobel 10y agopeerDependencies were deprecated as of NPM 3.
- pfooti 10y agoThey're not exactly deprecated, they just don't install automatically anymore. As I read it (and use them in npm 3), they're a way to specify "you need this other library installed also" without actually installing it. In a lot of cases ("we just need some flavor of jQuery 2"), of which I am not sure that this us-web thing is an example, it's handy. The thing you're distributing isn't standalone, it's a thing people will use in an environment that has some installed jquery already, so you're fine. The way I see it, if you're using a library that you can specify very permissively, peer dependencies are quite handy, and in this particular case seem useful - I'm building some webapp, I need to know that my UI library wants jquery to work, but I have a choice of not necessarily using that part (probably used for DOM manipulation, so if I'm just npm installing it for the CSS, wev), or making sure I meet the dependency with the other stuff I'm using. If not installed by default is a problem, there's an npm-install-peers package that does that.
- deleted 10y ago[deleted]
- deleted 10y ago[deleted]
- sdevoid 10y ago> An official website of the United States government Here's how you know... > This site is also protected by an SSL certificate that's been signed by the U.S. government... Oh really? DST Root CA X3 - Let's Encrypt Authority X3 - standards.usa.gov Kudos for using Let's Encrypt though!
- ourmandave 10y agoTheir wonderful tag line at the bottom of the page footer: We’re from the government, and we’re here to help.
- desdiv 10y agoThe full original quote being: "The most terrifying words in the English language are: I'm from the government and I'm here to help." [0] https://en.wikiquote.org/wiki/Ronald_Reagan https://en.wikiquote.org/wiki/Ronald_Reagan
- deleted 10y ago[deleted]
- ourmandave 10y agoSo the General Services Administration (GSA) forked Bootstrap. =)
- AstroJetson 10y agoI have an older Firefox that I'm running and the Web Design Standards page is all borked up. I'm wondering how many people that don't keep the upgrade stream going for their browsers will now have problems.
- extra88 10y agoHow old? I have a copy of Firefox 3.6.27 from 2012, the main content is below the sidenav, probably because its in an <aside>, support for which wasn't added until Firefox 4. That's okay, it's still usable, the content is still all there and readable. But there are some other things that are more fundamentally borked, the accordions won't operate. I'm for progressive enhancement and while requiring JavaScript for a site to work well or in some cases work at all is okay, there should still be some provision to "fail safe" so the content is available when the specific JavaScript fails for some reason (I don't think it's because they're using <button>, technically using that outside a form was against old HTML specs but I think browsers still routinely supported them). For accordions, my preference would be to use <details> and <summary> elements and a polyfill to make them work in browsers that don't support them; they'll "fail safe" and display all the content in browsers that don't support them and don't run the polyfill.
- AstroJetson 10y ago24.6 ESR from June 2014. The side navs are now on top of the main content. So the main contend slides under the side nav and is hard to read. I understand that it's a 3 year old browser, but it's on a Win7 machine, like lots of other web users.
- extra88 10y agoI realized that Firefox 3.6 not supporting <aside> wouldn't really affect the layout, it's basically a <div> and it's floated left, something 3.6 can handle. The main content has a class containing width: calc(100% - 250px); and Firefox didn't support calc() until 4 but that wouldn't explain it happening to you in 24.6 ESR. Maybe older Firefox has a bug in calc(), disabling that property in a newer browser is enough to shift the content below the sidenav because it falls back to width: 100%;. I see what you mean about hard to read, if I disable the calc() width, the sidenav stays put but the main content scrolls on top of it. That's a little confusing because the sidenav staying put is due to the property position: sticky; but caniuse.com says Firefox didn't support that until version 26, version 32 without having to enable a flag. Anyhow, I do think government guidelines in particular should handle older browsers better than this page is demonstrating. Part of the point of using frameworks for libraries and others is they can maintain and aggregate all the little solutions to problems between browser implementations and between older and newer browsers.
- SippinLean 10y ago>18F specifically does not recommend using Bootstrap for production work because: >It is difficult to adapt its opinionated styles to bespoke design work, and They have a tool on their website to generate a theme (Bourbon and PureCSS do not), and Sass functions and mixins for customizing elements. Bourbon and PureCSS's components are just as opinionated (and there are less of them). >Its CSS style places semantic layout instructions directly in HTML classes. Sure, but you can just use the Sass mixins instead, allowing you to use the grid system without adding a single class to HTML. Seems they knew this about Bourbon: >Bourbon is a Sass mixin library that has extensions for a robust semantic grid (Neat) The same is true of Bootstrap, so they recommend against it? It sounds like the author wasn't familiar with Bootstrap.
- ahoy 10y agoI imagine you're right. There's so much hissing and booing and the mention of bootstrap that a lot of otherwise good developers never touch it. Despite the fact that, you know, bootstrap is just fine.
- dbg31415 10y agoThis is really well done. Code is well laid out, well documented. Will make it easy to use this for training new college hires for sure. Didn't expect something like this out of the government. Nice to be surprised here.
- jimbauer_12 10y agoBeen using this on a govt. site Ive been redesigning for 2 years and could be doing so for another year or more. We've went from one govt. design standard to another and I'm not sure if the site will ever get redesigned or finished as it has to get signed off by a 100 govt. VP types. I'm burnt out by the bureaucracy and they need someone to get this thing approved vs. what do you think and what do you think and oh what do you think ... each person having a different opinion and nothing getting done but revise it again. What version are we on now .. oh number 599. Keeps me gainfully employed thankfully, but redesigning a website should not take 3 years or more.
- sacheendra 10y agoThe introduction to the colors section talks about communicating warmth and trustworthiness. How does a mostly blue, grey and white page communicate those feelings. Personally, I have always associated blue and grey with cold and isolation.
- sacheendra 10y agoAlso notice the very inclusive picture on their landing page template.
- cjhanks 10y agoWhy does this standard not fall under the purview of N.I.S.T.?
- deleted 10y ago[deleted]
- tingletech 10y agoit says on the site: "This site is also protected by an SSL (Secure Sockets Layer) certificate that’s been signed by the U.S. government. " But when you look at the certificate, it is signed by "Issued by: Let's Encrypt Authority X3"
- wyldfire 10y agoIs this supposed to be used by non-US gov sites? Can any old private site use it? It's public domain in the US, so assuming the answer to that question is yes, would it make sense for a private site to use it?
- notatoad 10y agoLegally, I'm pretty sure public domain is public domain (it's not just PD 'in the us'). You can do what you want with it without fear of copyright. And it's good style guide, but the US government is a pretty big brand to compete for an identity with - it doesn't really seem like it would be a good idea to just adopt their style guide wholesale. However, using this as a framework to build your own style guide sounds like a pretty decent plan.
- wyldfire 10y agoUnfortunately, some other jurisdictions don't have a concept of "public domain" works. That's why the page indicates "... this project is in the public domain within the United States." in its license [1]. But you answered the main point of my question, so thanks! [1] https://github.com/18F/web-design-standards/blob/develop/LICENSE.md#the-rest-of-this-project-is-in-the-worldwide-public-domain https://github.com/18F/web-design-standards/blob/develop/LIC...
- burntrelish1273 10y agoThis is great. Also worth noting in the UK, accessibility features for web pages are required by law (EQA, DDA). In the US, RAA 1998 is the similar legislation. Most govt agencies and private-sector businesses are required by law to provide accessible web pages, or face lawsuits and/or fines. TL;DR: all sites of reasonable size (govt and otherwise) should follow WCAG 2.0. WCAG: https://www.w3.org/TR/WCAG20/ https://www.w3.org/TR/WCAG20/ UK - Equality Act 2010 (EQA): http://www.legislation.gov.uk/ukpga/2010/15/contents http://www.legislation.gov.uk/ukpga/2010/15/contents UK - Disability Discrimination Act 1995 (DDA): http://www.legislation.gov.uk/ukpga/1995/50/contents http://www.legislation.gov.uk/ukpga/1995/50/contents US - Rehabilitation Act Amendments of 1998 (RAA): https://www.congress.gov/congressional-report/105th-congress/senate-report/166/1 https://www.congress.gov/congressional-report/105th-congress...
- 0xcde4c3db 10y agoI love this: > The UI components are built on a solid HTML foundation, progressively enhanced to provide core experiences across browsers. All users will have access to the same critical information and experiences regardless of what browser they use, although those experiences will render better in newer browsers. If JavaScript fails, users will still get a robust HTML foundation. I guess it remains to be seen just how robust this really is, but it's a fantastic goal to see explicitly embraced for modern websites. I skimmed some things in Lynx and w3m (elinks failed with an SSL error; rumor has it that it doesn't support SNI), and it honestly looks better than I remember a lot of sites looking in Lynx ~20 years ago, let alone the average modern site. Sure, part of that is imagemaps and frames going out of style, but modern sites haven't necessarily replaced them with more graceful constructs.