• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

CSS and Fonts for Web Apps

Scheduled Pinned Locked Moved App Development
12 Posts 4 Posters 775 Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      bryanegraham
      last edited by 5 Apr 2020, 22:50

      Hey there!

      So I'm in the process of making a bunch of table-top rpg tools all in javascript, and I'd like to bring them over to ubuntu touch. In doing so I'd prefer that they look and behave as close to native as possible.

      I'm wondering if anyone has any links to font, sizing or spacing guidelines that I've not been able to locate in the last few days of searching, or if there is any ready-made css for form sytling, fonts and the like out there.

      1 Reply Last reply Reply Quote 3
      • P Offline
        poVoq
        last edited by poVoq 4 Jun 2020, 01:17 6 Apr 2020, 01:05

        There is the old and abandoned HTML5 UI SDK:
        https://github.com/ubports/ubuntu-html5-theme

        https://docs.ubuntu.com/phone/en/apps/html-5/

        https://api-docs.ubports.com/sdk/apps/html5/index.html

        But IMHO it is not so native looking anymore with the grey-ish background gone and the suru icons improved:
        http://docs.ubports.com/projects/icons/en/latest/

        I personally have been playing with Bulma and the United bulmaswatch theme that at least uses typical Ubuntu colors;
        https://github.com/jenil/bulmaswatch/tree/gh-pages/united
        https://jenil.github.io/bulmaswatch/united/

        It's not really native looking and more geared towards websites, but at least is is lightweight and a modern CSS framework.

        Edit: That said, it would be great if the HTML5 SDK was properly updated and a first class app framework in UT again. However as you will quickly notice the build in qtwebengine embedded browser framework is severely outdated and has problems with GPU acceleration and Mir. So it is a long way (switch to Wayland backend and Ubuntu20.04 most likely) before it can be called that again.

        Fairphone 5 (waiting for port)

        1 Reply Last reply Reply Quote 1
        • B Offline
          bryanegraham
          last edited by 6 Apr 2020, 02:45

          Awesome! This is exactly the kind of thing I was looking for, especially the united theme!

          Thanks so much!

          P 2 Replies Last reply 6 Apr 2020, 10:42 Reply Quote 0
          • P Offline
            poVoq @bryanegraham
            last edited by 6 Apr 2020, 10:42

            @bryanegraham would you be interested in collaborating on a "HTML5 SDK light" based on Bulma?

            Fairphone 5 (waiting for port)

            1 Reply Last reply Reply Quote 0
            • P Offline
              poVoq @bryanegraham
              last edited by 6 Apr 2020, 16:25

              @bryanegraham Started working on it, but not usable yet. PRs welcome.
              https://github.com/poVoq/HTML5-appsdk-bulma

              Fairphone 5 (waiting for port)

              B B 2 Replies Last reply 6 Apr 2020, 19:17 Reply Quote 0
              • B Offline
                bhdouglass @poVoq
                last edited by 6 Apr 2020, 19:17

                As an alternative to the old sdk, there is the Vanilla framework by Canonical: https://vanillaframework.io/
                It's not 100% Ubuntu Touch, but fairly close. I've used it for my Recipe Boss app: https://open-store.io/app/recipe-boss.bhdouglass

                open-store.io && bhdouglass.com

                P 1 Reply Last reply 6 Apr 2020, 20:46 Reply Quote 1
                • P Offline
                  poVoq @bhdouglass
                  last edited by poVoq 4 Jun 2020, 21:10 6 Apr 2020, 20:46

                  @bhdouglass hmm I wasn't aware of it 😞
                  Maybe not a bad choice...
                  Edit: It requires Vue?

                  Fairphone 5 (waiting for port)

                  B 1 Reply Last reply 7 Apr 2020, 02:30 Reply Quote 0
                  • B Offline
                    bhdouglass @poVoq
                    last edited by 7 Apr 2020, 02:30

                    @poVoq No, vanilla framework is just css, Vue is just my preferred JS framework.

                    open-store.io && bhdouglass.com

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      Fla
                      last edited by 10 Apr 2020, 17:22

                      I'm really interested about a Vanilla CSS framework which could be used to develop HTML5 apps with a native look'n'feel on UT. I would use it to improve Axolotl, the Signal client.

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        poVoq
                        last edited by 10 Apr 2020, 18:29

                        Yeah, might work with Vanilla. But for me it looks way to complex compared to Bulma. I just want something super lightweight and simple to use for html wrappers like my conversejs xmpp client.

                        Fairphone 5 (waiting for port)

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          bryanegraham @poVoq
                          last edited by 1 Jun 2020, 03:16

                          Sorry to abandon the thread. Other projects ate up all my spare time! :person_bowing_medium-light_skin_tone: I hope you all are doing well!

                          @poVoq said in CSS and Fonts for Web Apps:

                          @bryanegraham Started working on it, but not usable yet. PRs welcome.
                          https://github.com/poVoq/HTML5-appsdk-bulma

                          I am interested indeed. I've got a couple things I want to do first on the project I want to port, but I'll hit you up on github if I hit any snags getting set up.

                          @bhdouglass said in CSS and Fonts for Web Apps:

                          As an alternative to the old sdk, there is the Vanilla framework by Canonical: https://vanillaframework.io/
                          It's not 100% Ubuntu Touch, but fairly close. I've used it for my Recipe Boss app: https://open-store.io/app/recipe-boss.bhdouglass

                          Awesome I'll take a look at this! Your app is actually a pretty good template for what I'm trying to do, since I'm also using, and I think it has pretty good performance and fits the rest of the os design very well.

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            bhdouglass
                            last edited by 1 Jun 2020, 14:17

                            @bryanegraham feel free to bug me with any questions, I'm happy to help!

                            open-store.io && bhdouglass.com

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post