<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mungai Njoroge</title>
    <description>The latest articles on DEV Community by Mungai Njoroge (@cwilvx).</description>
    <link>https://dev.to/cwilvx</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F638017%2Ff94aad90-bdcb-46fc-94d6-c28003908113.jpg</url>
      <title>DEV Community: Mungai Njoroge</title>
      <link>https://dev.to/cwilvx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cwilvx"/>
    <language>en</language>
    <item>
      <title>How to design your UI like Apple</title>
      <dc:creator>Mungai Njoroge</dc:creator>
      <pubDate>Tue, 17 Aug 2021 03:01:35 +0000</pubDate>
      <link>https://dev.to/cwilvx/why-people-love-the-apple-s-design-1fdk</link>
      <guid>https://dev.to/cwilvx/why-people-love-the-apple-s-design-1fdk</guid>
      <description>&lt;p&gt;Let's face it. Apple are really good at their design. &lt;/p&gt;

&lt;p&gt;Among other reasons, that's why there are many people willing to buy their tech, despite the fact it's quite expensive.&lt;/p&gt;

&lt;p&gt;What makes the Apple design unique?&lt;/p&gt;

&lt;p&gt;Let's look at some of the design concepts that makes the iThings so good, in terms of the user interface.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Rounded everything
&lt;/h3&gt;

&lt;p&gt;Well - not everything, but almost everything.&lt;/p&gt;

&lt;p&gt;Adding a border-radius to your components makes them look very attractive. Microsoft was kind of late in discovering that.&lt;/p&gt;

&lt;p&gt;Let's start with their sites. That's where people looking to switch to MacBooks first go.Most of the components on Apple products' websites are rounded. The border-radius starts from around 30px going down. &lt;/p&gt;

&lt;p&gt;Only catchy stuff is rounded. All the other detail is tucked into paragraphs. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fch8tkppnv8w5d4omdd7j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fch8tkppnv8w5d4omdd7j.png" alt="Rounded corners on Apple's website" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The roundedness can also be seen in MacOS and iOS. In MacOS BigSur for example, the control center, the dock, icons, the windows and almost everything is rounded.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Bright colors and gradients
&lt;/h3&gt;

&lt;p&gt;Apple uses a variety of bright colors in their design.&lt;/p&gt;

&lt;p&gt;Some of the colors used in the Apple systems and websites are Blue, Indigo, Purple and Red. You can get a full list of their system colors in their &lt;a href="https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/" rel="noopener noreferrer"&gt;Color Guidelines page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Color gradients can be seen in many parts of their websites, especially the rounded cards. The gradients mostly consists of 2 colors.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Glassmorphism
&lt;/h3&gt;

&lt;p&gt;Glassmorphism is a design based on using background blur with trasparency. Object have a light shadow which give them an effect of floating in space.&lt;/p&gt;

&lt;p&gt;This effect has been used very much by Apple on all their operating systems. In iOS, most widgets, app folders, the dock, notification, etc, are glassy.&lt;/p&gt;

&lt;p&gt;On the MacOS, glassmorphism is used on the dock, the control center, messages, sidebars, etc.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd5sujpbityyzvpys9imm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd5sujpbityyzvpys9imm.png" alt="Glassmorphism on MacOS control center" width="800" height="599"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Glassmorphism gives your apps or components the sense of integrating with the environment (or whatever is behind them).&lt;/p&gt;

&lt;p&gt;You can use use the &lt;a href="https://glassmorphism.com" rel="noopener noreferrer"&gt;glassmorphism.com css generator&lt;/a&gt; to create some amazing glassy effects for your site.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Graphics and animations
&lt;/h3&gt;

&lt;p&gt;Animations play a major role in adding interaction into everything.&lt;/p&gt;

&lt;p&gt;The iOS is one example where animations are used properly. When switching to the control panel, the components display using a very smooth scaling animation.&lt;/p&gt;

&lt;p&gt;In their product websites, there is a lot of graphics and scroll animations between them. Although the scroll animations are not always smooth, when done with a small amount of images, it produces satisfying results.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Their unique fonts
&lt;/h3&gt;

&lt;p&gt;The font is not something many developers consider, especially when building using/for Google tools like Chrome and Android. This is because the inherited font is quite good.&lt;/p&gt;

&lt;p&gt;Apple are currently using the Sans-serif () Pro typeface across all their products. This font is freely available but only limited to non-commercial use.&lt;/p&gt;

&lt;p&gt;You can download the font from &lt;a href="https://www.cufonfonts.com/font/sf-pro-display" rel="noopener noreferrer"&gt;cutonfonts.com&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Final remarks
&lt;/h3&gt;

&lt;p&gt;Apple are really good at designing their user interfaces. That's what drives some people to move away from other operating systems like Linux and Windows, despite the expense.&lt;/p&gt;

&lt;p&gt;You can try integrating those 5 concepts into your design and wait for the feedback. It is also worthy noting that not all of them are applicable at the same time. It will depend on the type of product you are building.&lt;/p&gt;

&lt;p&gt;What are some other concepts that I might have left out in this article? Please let me know in the comments.&lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

&lt;h3&gt;
  
  
  Helpful Resouces
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://www.freecodecamp.org/news/glassmorphism-design-effect-with-html-css/" rel="noopener noreferrer"&gt;What is Glassmorphism? Create This New Design Effect Using Only HTML and CSS&lt;/a&gt; by Zoltán Szőgyényi.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.makeuseof.com/css-background-gradients/" rel="noopener noreferrer"&gt;27 Stylish CSS Background Gradient Examples&lt;/a&gt; by Yuvraj Chandra.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://cssgradient.io" rel="noopener noreferrer"&gt;The CSS gradient generator&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://glassmorphism.com" rel="noopener noreferrer"&gt;The glassmorphism css generator&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.cufonfonts.com/font/sf-pro-display" rel="noopener noreferrer"&gt;SF Pro font download&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Figma Resources
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.figma.com/community/file/852445385275060830" rel="noopener noreferrer"&gt;iOS design system — Free UI kit
&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.figma.com/community/file/894970086024683822/IOS_14-Icon-packs" rel="noopener noreferrer"&gt;iOS 14 icon pack&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>uiux</category>
      <category>apple</category>
      <category>design</category>
      <category>glassmorphism</category>
    </item>
    <item>
      <title>How to provide the ultimate web dark mode experience</title>
      <dc:creator>Mungai Njoroge</dc:creator>
      <pubDate>Tue, 03 Aug 2021 00:44:53 +0000</pubDate>
      <link>https://dev.to/cwilvx/providing-the-ultimate-web-dark-mode-experience-39n1</link>
      <guid>https://dev.to/cwilvx/providing-the-ultimate-web-dark-mode-experience-39n1</guid>
      <description>&lt;p&gt;Adding dark mode to your web app is one way of improving the user experience.&lt;/p&gt;

&lt;p&gt;Here are some dark mode features that you should add to your web app, to provide the ultimate dark mode experience.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Matching the system dark mode
&lt;/h3&gt;

&lt;p&gt;The ability to follow the system dark mode makes your app integrate naturally with the user's system. This way, users don't have to switch to dark mode manually through the settings, unless they want to opt out.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Remembering the dark theme state on next visit
&lt;/h3&gt;

&lt;p&gt;This will allow the users to feel like they are picking up from where they left off. Plus, having to click that manual switch every time is very annoying. &lt;/p&gt;

&lt;p&gt;You will have to store the dark mode state on the client and in a database to maintain the state between sessions on different devices.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Watching for the system dark mode changes
&lt;/h3&gt;

&lt;p&gt;This partially removes the need to remember the dark mode state on the next visit. It also provides the natural integration we talked about earlier. It ensures that your web app matches with the user's system, and transitions to the matching system mode automatically.&lt;/p&gt;

&lt;p&gt;You should also provide the option to turn this off somewhere in the settings. Not everyone will prefer this.&lt;/p&gt;

&lt;p&gt;🔷 You should also keep in mind that getting or watching for the system dark mode change is device or browser-dependent. Some of your users might be using unsupported devices. For example, Android devices running Android 9 and below, do not support dark mode. This necessitates the need to store the dark mode state in a database.&lt;/p&gt;

&lt;p&gt;Here are some helpful resources:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://medium.com/hypersphere-codes/detecting-system-theme-in-javascript-css-react-f6b961916d48" rel="noopener noreferrer"&gt;Detecting system theme in JavaScript / CSS / React&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.section.io/engineering-education/adding-dark-theme-to-your-site/#using-local-storage" rel="noopener noreferrer"&gt;Dark Theme using CSS Variables and Local Storage&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

</description>
      <category>css</category>
      <category>javascript</category>
      <category>ux</category>
    </item>
  </channel>
</rss>
