TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What are your design hacks for better web design?

17 点作者 eliot_sykes将近 11 年前
There are a few rules of thumb I see repeated regularly for web design, such as aiming for 1.5em+ for line-height in paragraph text and using dark grey instead of black text on white backgrounds.<p>What are your rules of thumb &#x2F; hacks for improving your web designs?

7 条评论

enewe101将近 11 年前
Lately I&#x27;ve been really focused on catering to the main usecase of most websites: reading. Not all websites are for reading, of course!, but if yours is, use a nice big font with serifs, like 18 or 20px computer modern, and keep the number of characters per line down around 65. This makes the trip your eyes take during a &quot;visual carriage return&quot; shorter, so you keep your place more easily.<p>I like to use sans for any widgets. Serifs are nice for the main content, because they signal an editorial frame, but for you don&#x27;t want that for your widgets. I also like to keep the text on widgets a bit smaller, because they spend too much time sitting there, staring at you, not telling you anything useful.<p>I also like to keep pages single-purpose. On any given horizontal line, have only focus. This will obviously depend on your application. But chances are pretty good that your website is meant to be read, and most people can only read one string at a time. Put related stuff at the bottom, or top. Ok, maybe a nav bar in the margin -- but it should be quieter than the main content.<p>The layout and styling of a website should emphasize the main content, and help make relationships between items of content clear. That said, design should be subtle. It should not speak, or else it will compete for the user&#x27;s attention with content. Keep a high information-to-ink ratio. Meaningless gloss, is to be avoided. The beginning or ending of an article is important, mark it a big initial, an elegant flourish, or a nice, stolid tombstone. But please don&#x27;t succumb to the temptation to put drop shadows, gradients, and other bubbly 3D effects.<p>Usually, what makes a website nice is what is <i>not</i> done.<p>Also, hold your color. Black, white, 80% grey, and 20% grey are your best friends. IMO they are good for about 95% of the pixels on the page. In that context, color can then actually be used to signal meaning, emphasis, and functionality. Lots of sites establish a highlight, background, and main-text color which are not in the greyscale. That&#x27;s ok as long as that&#x27;s as far as it goes.<p>This should go without saying, but don&#x27;t use any animation anywhere, ever. Ok, ok, I&#x27;m excluding single-frame changes on mouseclick and hover -- used judiciously. But please, no stretching menus, whirling tabs, and no slide shows. If I want to watch a goddamn slideshow, I&#x27;d go watch a doggamned slideshow :P<p>Again, this assumes you&#x27;re making a site for reading. You should free to use as many colors as you want, spurious lines, shading, animations, bright, solid colored flashing backgrounds, and play sounds, when making a page for fun, for breakfast, or for Reasons.
评论 #7839734 未加载
shawnreilly将近 11 年前
Every design I do is different, so I wouldn&#x27;t have any specific rule of thumb. But there are some common things I do related to the process of designing; I guess you could call it my own personal best practices. The first thing I&#x27;ll do is start with colors, and come up with 4-5 different colors that compliment each other and convey some sort of theme or feel. Once I have that down, then I get into the graphic design and create a logo. Once that&#x27;s created I&#x27;ll start to do the general layout for the website. The first part I work on is the UI and navigation. I&#x27;ll usually storyboard all the pages of the site, and come up with what I call a navigation strategy. This will allow me to determine what type of UI and navigation elements I&#x27;ll be using for each type of device. This gives me an opportunity to ensure that the navigation experience will be consistent across multiple devices. Once this is known, I&#x27;ll decide on what frameworks I might use (if any) to help prototype the design faster. In some instances, and depending on what the website will be doing, I might combine multiple frameworks and use custom builds of each one as not to overlap. This allows me to pick and choose what parts of each framework will compliment what I&#x27;m building. So for example, if I&#x27;m designing for a Phonegap App or Web App, then I&#x27;ll use certain frameworks. If it&#x27;s for a Blog or Website then I might use other ones. Once that is decided, then I&#x27;ll move on to building. Make sure you put lots of comments. I use my own custom set of css media queries that allow me to do specific designs for every major device in both portrait and landscape views. I always start with the tablet&#x27;s (design for tablet first). I&#x27;ll usually start with portrait, and then move on to landscape. Once the tablet view is done, then I move on to Mobile (also portrait first, landscape second). The last view I work on is the Desktop view, with 1366px wide being the most common resolution. But I also make sure it works well on 1920px+ wide resolutions. Using the css media queries, I can do this multi-view prototyping using the same files, usually using Firefox Responsive Design View to change the resolutions and orientations. If the html syntax needs to change for different views, then I&#x27;ll use the media queries to control that as well. This allows me to prototype pretty fast for mobile, tablet, and desktop. Getting it production ready requires more steps, but hopefully this helps!
normloman将近 11 年前
Good design doesn&#x27;t come from a hack. It&#x27;s not a &quot;one size fits all&quot; solution. You need to think deeply about the problem you&#x27;re solving, the audience, the author, and the content. I recommend reading a book on typography. Then you&#x27;ll understand why line height matters, and why sometimes 1.5em is inappropriate (Though it&#x27;s a good rule of thumb).
评论 #7840482 未加载
enewe101将近 11 年前
Did you catch this post? -- what not to do <a href="http://www.nngroup.com/articles/the-top-ten-web-design-mistakes-of-1999/" rel="nofollow">http:&#x2F;&#x2F;www.nngroup.com&#x2F;articles&#x2F;the-top-ten-web-design-mista...</a>
thinkerer将近 11 年前
I think most important rule of thumb is there should be a clear and concise path or mode of action. Amidst the chaotic data overflow, it often helps to have something calming.<p>Colors, fonts, layouts help all in this direction.
Ryel将近 11 年前
#1 hack for good design = K.I.S,S
hcho将近 11 年前
Use a css framework. Anything would do.
评论 #7839563 未加载